-
Notifications
You must be signed in to change notification settings - Fork 240
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
[BUG] Uncaught ReferenceError: __extends is not defined #1527
Comments
Can I assume that you are using a bundling package (like webpack)? I believe this is a duplicate issue and a workaround for the bundling is included in #1281, the workaround included for the webpack chunking issue is below (taken from #1281)
And further details
|
Closing as believe the workaround addresses the issue |
v2.6.2 will also fix these type of issue moving forward as we will be including our own version directly, rather than relying on the TsLib (or shims) versions being included by packagers |
updating to v2.6.2 of applicationinsights-web didn't work unfortunately. with v2.6.2 of applicationinsights-web ie digitalpalitools/web-ui@42c55ac i get the following error however things are fine after applying your provideplugin workaround, in addition to the above ie digitalpalitools/web-ui@b6b8970 |
@parthopdas |
@mmarshad i am using craco which lets you hijack into webpack config of a CRA app- you can refer to https://github.com/digitalpalitools/web-ui/ on how to do it. |
@parthopdas : Thanks for response, I'm afraid I can't use that. |
Current version: And added the import in base index
Any workaround or fix? |
PR for bumping versions to consume v2.6.2 and shims v2.0.0 is out #1552 |
React v3.1.1 and ReactNative v2.3.1 are now published to NPM |
@MSNev We recently upgraded to the following packages
And it started causing the same issue as above
What our fix was to revert back to the following version
|
Oh well crap! I forgot to update the packaging step to re-use the shims instance. |
I've deprecated the react v3.1.1 and react-native v2.3.1 packages until I can publish an updated versions |
I'm updating #1553 with the current state, please see comments there for additional info. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description/Screenshot
I have a react app which is created with create-react-app.
When I create production build of my app and serve it I'm getting the following error:
The problem exists only when app is build for production. It's working when starting it in development mode.
It's not working even in this demo app: https://github.com/Azure-Samples/application-insights-react-demo
I had to update to 3.0.5 because the older version doesn't have AppInsightsErrorBoundary
Packages
Steps to Reproduce
The text was updated successfully, but these errors were encountered: