Unable wasp start with setting NODE_ENV=production

I have issue when I set NODE_ENV=production. If I set to development, it works.
Can someone explain and tell me how to fix?

60.07 [ Wasp ] client/config.ts(3,47): error TS2339: Property 'env' does not exist on type 'ImportMeta'.
60.07 [ Wasp ] ext-src/admin/layout/Sidebar.tsx(3,18): error TS2307: Cannot find module '../../client/static/logo.png' or its corresponding type declarations.
60.07 [ Wasp ] ext-src/auth/AuthPageLayout.tsx(2,29): error TS2307: Cannot find module '../../src/client/static/niles_background.png' or its corresponding type declarations.
60.07 [ Wasp ] ext-src/client/App.tsx(9,18): error TS2307: Cannot find module '../../src/client/static/logo5.png' or its corresponding type declarations.
60.07 [ Wasp ] ext-src/client/components/AppHeader2.tsx(5,18): error TS2307: Cannot find module '../static/logo4.png' or its corresponding type declarations.
60.07 [ Wasp ] ext-src/client/components/cookie-consent/Config.ts(16,31): error TS2339: Property 'env' does not exist on type 'ImportMeta'.
60.07 [ Wasp ] ext-src/client/components/cookie-consent/Config.ts(61,53): error TS2339: Property 'env' does
Screenshot_2025-01-08_at_11.01.35.png
Was this page helpful?