Uncaught ReferenceError: e is not defined
See original GitHub issueThe package works perfectly in a local dev environment but when I deploy to Heroku, I get the following error:
Uncaught ReferenceError: e is not defined
Here is the full stack trace:
33../support/isBuffer @ blob:https://app.herokuapp.com/ff936ac0-6d3f-4861-be69-5014291c6119:2 i @ blob:https://app.herokuapp.com/ff936ac0-6d3f-4861-be69-5014291c6119:1 (anonymous) @ blob:https://app.herokuapp.com/ff936ac0-6d3f-4861-be69-5014291c6119:1 104.util @ blob:https://app.herokuapp.com/ff936ac0-6d3f-4861-be69-5014291c6119:5 i @ blob:https://app.herokuapp.com/ff936ac0-6d3f-4861-be69-5014291c6119:1 (anonymous) @ blob:https://app.herokuapp.com/ff936ac0-6d3f-4861-be69-5014291c6119:1 131.../error/validation_error @ blob:https://app.herokuapp.com/ff936ac0-6d3f-4861-be69-5014291c6119:6 i @ blob:https://app.herokuapp.com/ff936ac0-6d3f-4861-be69-5014291c6119:1 (anonymous) @ blob:https://app.herokuapp.com/ff936ac0-6d3f-4861-be69-5014291c6119:1 145../reference/latest @ blob:https://app.herokuapp.com/ff936ac0-6d3f-4861-be69-5014291c6119:6 i @ blob:https://app.herokuapp.com/ff936ac0-6d3f-4861-be69-5014291c6119:1 (anonymous) @ blob:https://app.herokuapp.com/ff936ac0-6d3f-4861-be69-5014291c6119:1 159.../style-spec/validate_style.min @ blob:https://app.herokuapp.com/ff936ac0-6d3f-4861-be69-5014291c6119:7 i @ blob:https://app.herokuapp.com/ff936ac0-6d3f-4861-be69-5014291c6119:1 (anonymous) @ blob:https://app.herokuapp.com/ff936ac0-6d3f-4861-be69-5014291c6119:1 151.../style-spec/reference/latest @ blob:https://app.herokuapp.com/ff936ac0-6d3f-4861-be69-5014291c6119:6 i @ blob:https://app.herokuapp.com/ff936ac0-6d3f-4861-be69-5014291c6119:1 (anonymous) @ blob:https://app.herokuapp.com/ff936ac0-6d3f-4861-be69-5014291c6119:1 157.../style-spec/feature_filter @ blob:https://app.herokuapp.com/ff936ac0-6d3f-4861-be69-5014291c6119:6 i @ blob:https://app.herokuapp.com/ff936ac0-6d3f-4861-be69-5014291c6119:1 (anonymous) @ blob:https://app.herokuapp.com/ff936ac0-6d3f-4861-be69-5014291c6119:1 100.../style/style_layer_index @ blob:https://app.herokuapp.com/ff936ac0-6d3f-4861-be69-5014291c6119:4 i @ blob:https://app.herokuapp.com/ff936ac0-6d3f-4861-be69-5014291c6119:1 (anonymous) @ blob:https://app.herokuapp.com/ff936ac0-6d3f-4861-be69-5014291c6119:1 anonymous @ blob:https://app.herokuapp.com/ff936ac0-6d3f-4861-be69-5014291c6119:10 i @ blob:https://app.herokuapp.com/ff936ac0-6d3f-4861-be69-5014291c6119:1 e @ blob:https://app.herokuapp.com/ff936ac0-6d3f-4861-be69-5014291c6119:1 (anonymous) @ blob:https://app.herokuapp.com/ff936ac0-6d3f-4861-be69-5014291c6119:1
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (1 by maintainers)
Top GitHub Comments
@taystu It an known issue with
mapbox-gl
andUglify
. You have a detailed explanation of the issue here: https://github.com/mapbox/mapbox-gl-js/issues/4359#issuecomment-303880888 And here: https://github.com/mishoo/UglifyJS2/issues/2520#issuecomment-347342508And a correct way to solve it: https://github.com/angular/angular-cli/pull/7931#issuecomment-348032708
To sum it up, just set
typeofs : false
toUglify
options.@cshah3 Thanks… I am having the same issue with React app, but cannot get around it