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 #5

Open
konsumer opened this issue Nov 29, 2015 · 0 comments
Open

Maximum call stack size exceeded #5

konsumer opened this issue Nov 29, 2015 · 0 comments

Comments

@konsumer
Copy link

I am trying to use the example in webgl_geometry_cube as a base for a new project. I start by making a package.json that looks like this:

{
  "name": "webgl_geometry_cube",
  "version": "1.0.0",
  "description": "Adapted from http://threejs.org/docs/index.html#Manual/Introduction/Creating_a_scene. Open index.html to view. To rebuild bundle.js:",
  "main": "main.js",
  "devDependencies": {
    "rollup": "^0.21.1",
    "uglify-js": "^2.6.1"
  },
  "scripts": {
    "bundle": "rollup -i main.js -o bundle.js -f iife",
    "minify": "uglifyjs -c -m -o bundle.min.js -- bundle.js"
  }
}

When I run npm run bundle I get this error:

> [email protected] bundle /Users/konsumer/Downloads/three-jsnext-master/examples/webgl_geometry_cube
> rollup -i main.js -o bundle.js -f iife

Treating './Three.js' as external dependency
Treating '../Three' as external dependency
Treating '../Three' as external dependency
Treating '../../Three' as external dependency
Treating '../../Three' as external dependency
Treating '../../Three' as external dependency
Treating '../../Three' as external dependency
Treating '../../Three' as external dependency
Treating '../Three' as external dependency
Treating '../Three' as external dependency
Treating '../Three' as external dependency
Treating '../Three' as external dependency
Treating '../Three' as external dependency
Treating '../Three' as external dependency
Treating '../Three' as external dependency
Treating '../Three' as external dependency
Treating '../Three' as external dependency
Treating '../Three' as external dependency
Treating '../Three' as external dependency
Treating '../Three' as external dependency
Treating '../Three' as external dependency
Treating '../Three' as external dependency
Treating '../Three' as external dependency
Treating '../Three' as external dependency
Treating '../../Three' as external dependency
Treating '../../Three' as external dependency
Treating '../../Three' as external dependency
Treating '../Three' as external dependency
Treating '../Three' as external dependency
Maximum call stack size exceeded
RangeError: Maximum call stack size exceeded
    at place (/Users/konsumer/Downloads/three-jsnext-master/examples/webgl_geometry_cube/node_modules/rollup/www/ROLLUP/rollup/src/Bundle.js:321:66)
    at Array.forEach (native)
    at place (/Users/konsumer/Downloads/three-jsnext-master/examples/webgl_geometry_cube/node_modules/rollup/www/ROLLUP/rollup/src/Bundle.js:322:28)
    at Array.forEach (native)
    at place (/Users/konsumer/Downloads/three-jsnext-master/examples/webgl_geometry_cube/node_modules/rollup/www/ROLLUP/rollup/src/Bundle.js:322:28)
    at Array.forEach (native)
    at place (/Users/konsumer/Downloads/three-jsnext-master/examples/webgl_geometry_cube/node_modules/rollup/www/ROLLUP/rollup/src/Bundle.js:322:28)
    at Array.forEach (native)
    at place (/Users/konsumer/Downloads/three-jsnext-master/examples/webgl_geometry_cube/node_modules/rollup/www/ROLLUP/rollup/src/Bundle.js:322:28)
    at Array.forEach (native)
Type rollup --help for help, or visit https://github.com/rollup/rollup/wiki

npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "bundle"
npm ERR! node v5.0.0
npm ERR! npm  v3.3.12
npm ERR! code ELIFECYCLE
npm ERR! [email protected] bundle: `rollup -i main.js -o bundle.js -f iife`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] bundle script 'rollup -i main.js -o bundle.js -f iife'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the webgl_geometry_cube package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     rollup -i main.js -o bundle.js -f iife
npm ERR! You can get their info via:
npm ERR!     npm owner ls webgl_geometry_cube
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/konsumer/Downloads/three-jsnext-master/examples/webgl_geometry_cube/npm-debug.log

I run sudo ulimit 10000000 to increase my ulimit, and it does the same thing.

OSX Yosemite.
node v5.0.0
npm 3.3.12

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

1 participant