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

Uncaught ReferenceError after upgrade #123

Closed
paulschreiber opened this issue Nov 20, 2023 · 1 comment
Closed

Uncaught ReferenceError after upgrade #123

paulschreiber opened this issue Nov 20, 2023 · 1 comment

Comments

@paulschreiber
Copy link

Description

After upgrading from 1.0.30001553 to 1.0.30001563, my React app started failing with this error:

Uncaught ReferenceError: Cannot access 'ROLLBAR_TOKEN' before initialization

This doesn't make a lot of sense, as it's totally unrelated, but git bisect led me to this commit and reverting it caused the problem to go away.

@ai
Copy link
Member

ai commented Nov 20, 2023

Very likely that happens because JS polyfills was changed.

caniuse-lite has browsers database for Browserslist queries like last 2 versions. Babel uses Browserslist and on caniuse-lite you will have a different target browsers (npx update-browserslist-db warns you about these changes).

@ai ai closed this as completed Nov 20, 2023
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