[BUG] Version 2.6.2 built with react-script build results in a runtime error
See original GitHub issueDescription
After upgrading to @microsoft/applicationinsights-web@2.6.2
(from 2.6.1) in a react project, the built solution (via react-scripts
) produces a runtime error, resulting in a blank screen.
The following error is present in the console:
ReactPlugin.ts:103 Uncaught ReferenceError: __extends is not defined
at ReactPlugin.ts:103
at Object.<anonymous> (ReactPlugin.ts:17)
at f ((index):1)
at Object.53 (main.5d60f9e0.chunk.js:1)
at f ((index):1)
at Object.28 (main.5d60f9e0.chunk.js:1)
at f ((index):1)
at Module.345 (main.5d60f9e0.chunk.js:1)
at f ((index):1)
at r ((index):1)
Steps to Reproduce
- Setup a
create-react-app
project with@microsoft/applicationinsights-web@2.6.2
&@microsoft/applicationinsights-react-js@3.1.0
- Build the project
- Serve the build folder
- When accessing the webpage, the screen is blank with the error above in the console.
- OS/Browser: Windows 10, Chrome
- SDK Versions:
- @microsoft/applicationinsights-web@2.6.2
- @microsoft/applicationinsights-react-js@3.1.0
- react-scripts@4.0.3
Additional info
This issue only occurs when built. Starting a development server works fine.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
ERROR in Plugin "react" was conflicted between ".eslintrc.json ...
The problem: eslint-plugin-react version in your project's dependency is "different" from the one in eslint-config-react-app package's ...
Read more >How to fix build failures with `create-react-app` in production
If your build is using create-react-app and has been failing since approximately the 18th of June 2020, this post will help you fix...
Read more >Trouble with installing cocoapods | Apple Developer Forums
Building native extensions. This could take a while... ERROR: Error installing cocoapods: ERROR: Failed to build gem native extension ...
Read more >Bug listing with status RESOLVED with resolution UPSTREAM ...
Bug :6292 - "loadkeys broken, or kernel memory garbled!!! ... (locally built versions do)" status:RESOLVED resolution:UPSTREAM severity:major · Bug:56493 ...
Read more >Gatsby Changelog | 5.3.0
After the files are built, Gatsby will then stitch the resulting markup and JavaScript to the ... Install experimental version of react and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
React v3.1.1 and ReactNative v2.3.1 are now published to NPM
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.