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

syntax error #137

Open
DanLipsitt opened this issue May 24, 2016 · 1 comment
Open

syntax error #137

DanLipsitt opened this issue May 24, 2016 · 1 comment

Comments

@DanLipsitt
Copy link

I'm getting the following error while using source-map-support@0.4.0 with mocha-webpack:

node_modules/source-map-support/source-map-support.js:407
      var hasStack = (arguments[1] && arguments[1].stack);
                                                  ^
SyntaxError:

npm ERR! Darwin 12.6.0
npm ERR! argv "/usr/local/Cellar/node/5.3.0/bin/node" "/Users/dan/.node/bin/npm" "run" "test"
npm ERR! node v5.3.0
npm ERR! npm  v3.8.3
npm ERR! code ELIFECYCLE

(The syntax error is blank as shown.)

@wirmar
Copy link

wirmar commented May 25, 2016

You need to set the environment to node like so: (I had the same Problem)

require('source-map-support').install({
  environment: 'node',
});

This is mentioned in the README under Options.

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

2 participants