question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Uncaught ReferenceError: e is not defined

See original GitHub issue

The 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:closed
  • Created 6 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
Wykkscommented, Mar 3, 2018

@taystu It an known issue with mapbox-gl and Uglify. 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-347342508

And a correct way to solve it: https://github.com/angular/angular-cli/pull/7931#issuecomment-348032708

To sum it up, just set typeofs : false to Uglify options.

3reactions
mario-jerkoviccommented, Apr 29, 2017

@cshah3 Thanks… I am having the same issue with React app, but cannot get around it

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught ReferenceError: e is not defined - Stack Overflow
It's called e and made available idiomatically (i.e. through function(e) ), but there's nothing special about it as in "that JavaScript already set"....
Read more >
Uncaught ReferenceError: e is not defined (chrome & safari)
I am getting following errors: Uncaught TypeError: Cannot read property 'offsetX' of undefined; Uncaught ReferenceError: e is not defined. Code ...
Read more >
How to Fix ReferenceError: Event is Not Defined in JavaScript
When using event handlers in Javascript, the handler expects a parameter to be declared for the event object. This parameter is usually named...
Read more >
Uncaught ReferenceError: e is not defined - CodeProject
You can use this code to verify that a variable is defined (or undefined). JavaScript. // In your case instead of "variable" you...
Read more >
ReferenceError: "x" is not defined - JavaScript - MDN Web Docs
There is a non-existent variable referenced somewhere. This variable needs to be declared, or you need to make sure it is available in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found