-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Cannot find module 'sinon' #3230
Comments
Two issues layered here:
This isn't technically true. By default, Are you using something similar to the suggested webpack configuration? |
Thanks, we are using the suggested webpack config (it's great!) and haven't configured a production env yet, so that hasn't happened yet. Are you sure about devDependencies? According to this answer on SO:
|
@tmcw @DannyDelott would this solution be acceptable to you? |
@mourner I need Just wanted to document it here in case others aren't using |
As of 0.24.0,
sinon
appears to be used outside of the testing environment:mapbox-gl-js/js/util/window.js
Line 5 in 07feb8d
This causes an issue with
npm install mapbox-gl
, because devDependencies are not installed with this command without explicitly using the--dev
flag.With webpack, this results in the following stack trace:
The text was updated successfully, but these errors were encountered: