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

Maximum call stack size exceeded #4337

Closed
0zguner opened this issue May 25, 2016 · 3 comments
Closed

Maximum call stack size exceeded #4337

0zguner opened this issue May 25, 2016 · 3 comments
Labels
external dependency Blocked by external dependency, we can’t do anything about it

Comments

@0zguner
Copy link

0zguner commented May 25, 2016

Problem description

src/svg-icons/image/wb-sunny.js -> build/svg-icons/image/wb-sunny.js
RangeError: src/svg-icons/index.js: Maximum call stack size exceeded
at CodeGenerator.print (/Users/xxx/Personal/material-ui/node_modules/babel-generator/lib/printer.js:75:43)
at CodeGenerator.MemberExpression (/Users/xxx/Personal/material-ui/node_modules/babel-generator/lib/generators/expressions.js:243:8)
at CodeGenerator._print (/Users/xxx/Personal/material-ui/node_modules/babel-generator/lib/printer.js:184:17)
at /Users/xxx/Personal/material-ui/node_modules/babel-generator/lib/printer.js:120:38
at CodeGenerator.withSource (/Users/xxx/Personal/material-ui/node_modules/babel-generator/lib/buffer.js:279:5)
at CodeGenerator.print (/Users/xxx/Personal/material-ui/node_modules/babel-generator/lib/printer.js:119:10)
at CodeGenerator.AssignmentExpression (/Users/xxx/Personal/material-ui/node_modules/babel-generator/lib/generators/expressions.js:206:8)
at CodeGenerator._print (/Users/xxx/

Steps to reproduce

npm install
npm run build (npm run build:babel)

Versions

  • Material-UI: 0.15
  • React: 15.1.0
  • Browser: None
@0zguner
Copy link
Author

0zguner commented May 28, 2016

I've just sent a PR here #4374

You can increase stack size value in case 10000 does not fix your issue.

Regards.

danbrianwhite added a commit to danbrianwhite/material-ui that referenced this issue Jun 1, 2016
danbrianwhite added a commit to danbrianwhite/material-ui that referenced this issue Jun 1, 2016
@nathanmarks nathanmarks added the external dependency Blocked by external dependency, we can’t do anything about it label Jun 1, 2016
@nathanmarks
Copy link
Member

@0zguner 0zguner closed this as completed Jun 28, 2016
@mattste
Copy link

mattste commented Jan 26, 2017

This appears to be an issue for me when using a React Native Webview. The assignment causes a stack overflow. I've left a comment over on the babel issue (now babel/babel#4323) to see if someone could lend some guidance on how to solve this.

I think that perhaps the only alternative from material-ui's side would be to break apart the large svg-icons file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external dependency Blocked by external dependency, we can’t do anything about it
Projects
None yet
Development

No branches or pull requests

4 participants