You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I built a React JS app on Vite and I am having issues trying to deploy it on Firebase. The dev mode works just find, but when I ran the command line "npm run build", I get the following error:
Cannot read properties of undefined (reading 'thisArg')
error during build:
TypeError: Cannot read properties of undefined (reading 'thisArg')
at CallExpression.applyDeoptimizations (file:///D:/NodeJS%20projects/BlogApiSite/BlogClientSite/node_modules/rollup/dist/es/shared/node-entry.js:9537:30)
at CallExpression.hasEffects (file:///D:/NodeJS%20projects/BlogApiSite/BlogClientSite/node_modules/rollup/dist/es/shared/node-entry.js:9503:22)
at ExpressionStatement.hasEffects (file:///D:/NodeJS%20projects/BlogApiSite/BlogClientSite/node_modules/rollup/dist/es/shared/node-entry.js:5750:28)
at Program.hasEffects (file:///D:/NodeJS%20projects/BlogApiSite/BlogClientSite/node_modules/rollup/dist/es/shared/node-entry.js:11487:22)
at Program.hasCachedEffects (file:///D:/NodeJS%20projects/BlogApiSite/BlogClientSite/node_modules/rollup/dist/es/shared/node-entry.js:11482:44)
at Module.hasEffects (file:///D:/NodeJS%20projects/BlogApiSite/BlogClientSite/node_modules/rollup/dist/es/shared/node-entry.js:13379:75)
at addSideEffectDependencies (file:///D:/NodeJS%20projects/BlogApiSite/BlogClientSite/node_modules/rollup/dist/es/shared/node-entry.js:13719:72)
at Module.addRelevantSideEffectDependencies (file:///D:/NodeJS%20projects/BlogApiSite/BlogClientSite/node_modules/rollup/dist/es/shared/node-entry.js:13726:9)
at Module.getDependenciesToBeIncluded (file:///D:/NodeJS%20projects/BlogApiSite/BlogClientSite/node_modules/rollup/dist/es/shared/node-entry.js:13237:18)
at addStaticDependencies (file:///D:/NodeJS%20projects/BlogApiSite/BlogClientSite/node_modules/rollup/dist/es/shared/node-entry.js:14947:33)
OS: Microsoft Windows 11 Home
Node Version v18.13.0
vite/4.3.5 win32-x64
Used Package Manager
npm
Logs
Log:
Cannot read properties of undefined (reading 'thisArg')
error during build:
TypeError: Cannot read properties of undefined (reading 'thisArg')
at CallExpression.applyDeoptimizations (file:///D:/NodeJS%20projects/BlogApiSite/BlogClientSite/node_modules/rollup/dist/es/shared/node-entry.js:9537:30)
at CallExpression.hasEffects (file:///D:/NodeJS%20projects/BlogApiSite/BlogClientSite/node_modules/rollup/dist/es/shared/node-entry.js:9503:22)
at ExpressionStatement.hasEffects (file:///D:/NodeJS%20projects/BlogApiSite/BlogClientSite/node_modules/rollup/dist/es/shared/node-entry.js:5750:28)
at Program.hasEffects (file:///D:/NodeJS%20projects/BlogApiSite/BlogClientSite/node_modules/rollup/dist/es/shared/node-entry.js:11487:22)
at Program.hasCachedEffects (file:///D:/NodeJS%20projects/BlogApiSite/BlogClientSite/node_modules/rollup/dist/es/shared/node-entry.js:11482:44)
at Module.hasEffects (file:///D:/NodeJS%20projects/BlogApiSite/BlogClientSite/node_modules/rollup/dist/es/shared/node-entry.js:13379:75)
at addSideEffectDependencies (file:///D:/NodeJS%20projects/BlogApiSite/BlogClientSite/node_modules/rollup/dist/es/shared/node-entry.js:13719:72)
at Module.addRelevantSideEffectDependencies (file:///D:/NodeJS%20projects/BlogApiSite/BlogClientSite/node_modules/rollup/dist/es/shared/node-entry.js:13726:9)
at Module.getDependenciesToBeIncluded (file:///D:/NodeJS%20projects/BlogApiSite/BlogClientSite/node_modules/rollup/dist/es/shared/node-entry.js:13237:18)
at addStaticDependencies (file:///D:/NodeJS%20projects/BlogApiSite/BlogClientSite/node_modules/rollup/dist/es/shared/node-entry.js:14947:33)
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
I'll close this issue for now as I guess it would work if you update rollup version.
If doesn't work, please create a new issue with a minimal reproduction.
Describe the bug
I built a React JS app on Vite and I am having issues trying to deploy it on Firebase. The dev mode works just find, but when I ran the command line "npm run build", I get the following error:
Reproduction
https://github.com/Albertyhu/BlogClient
Steps to reproduce
Run 'npm run build'
System Info
Used Package Manager
npm
Logs
Log:
Validations
The text was updated successfully, but these errors were encountered: