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.

[BUG] Version 2.6.2 built with react-script build results in a runtime error

See original GitHub issue

Description

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

  1. Setup a create-react-app project with @microsoft/applicationinsights-web@2.6.2 & @microsoft/applicationinsights-react-js@3.1.0
  2. Build the project
  3. Serve the build folder
  4. When accessing the webpage, the screen is blank with the error above in the console.

Additional info

This issue only occurs when built. Starting a development server works fine.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
MSNevcommented, Apr 26, 2021

React v3.1.1 and ReactNative v2.3.1 are now published to NPM

0reactions
github-actions[bot]commented, Apr 28, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

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