Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RangeError: Maximum call stack size exceeded #5433

Open
danush-basky opened this issue Mar 15, 2024 · 3 comments
Open

RangeError: Maximum call stack size exceeded #5433

danush-basky opened this issue Mar 15, 2024 · 3 comments

Comments

@danush-basky
Copy link

Hey there! If you need help or tech support then this is not the place to ask. Please head to the Rollup Discord instead or post a question to https://stackoverflow.com/questions/tagged/rollupjs.

If you arrived here because you think Rollup's documentation is unclear, insufficient or wrong, please consider creating an issue for the documentation instead.

Getting the below error on npm run build while building docker image. Able to build successfully on host machine. Using Vite.

RangeError: Maximum call stack size exceeded
at convertNodeList (file:///app/node_modules/rollup/dist/es/shared/parseAst.js:2064:34)
at classBody (file:///app/node_modules/rollup/dist/es/shared/parseAst.js:1142:22)
at convertNode (file:///app/node_modules/rollup/dist/es/shared/parseAst.js:2057:12)
at importDefaultSpecifier (file:///app/node_modules/rollup/dist/es/shared/parseAst.js:1484:23)
at convertNode (file:///app/node_modules/rollup/dist/es/shared/parseAst.js:2057:12)
at convertNodeList (file:///app/node_modules/rollup/dist/es/shared/parseAst.js:2064:34)
at classBody (file:///app/node_modules/rollup/dist/es/shared/parseAst.js:1142:22)
at convertNode (file:///app/node_modules/rollup/dist/es/shared/parseAst.js:2057:12)
at importDefaultSpecifier (file:///app/node_modules/rollup/dist/es/shared/parseAst.js:1484:23)
at convertNode (file:///app/node_modules/rollup/dist/es/shared/parseAst.js:2057:12)
building at STEP "RUN npm run build": while running runtime: exit status 1

@arturog
Copy link

arturog commented May 7, 2024

I fixed this by downgrading @rollup/rollup-linux-x64-gnu to version 4.17.1.

@lukastaegert
Copy link
Member

lukastaegert commented May 7, 2024

Sorry I missed this one. If this problem still persists, any kind of reproduction would be more than welcome. This looks like it is caused by a module that cannot be parsed correctly, so we would need to see the code of the module in question.

@arturog
Copy link

arturog commented May 8, 2024

Impossible for me to tell, sorry. Only guidance I can provide is the following:

  • Failure running vitest - vitest/1.1.3 linux-x64 node-v20.12.1
  • Linux with clang
  • npm version 10.5.0
  • Project uses typescript - tsc Version 5.3.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants