[@rollup/plugin-commonjs] engine-v8-version.js:25 Uncaught TypeError: userAgent.match is not a function at engine-v8-version.js:25:21 in core-js
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript, rollup
- Domain
- build-system
Research direction
Start with the linked reproduction, run npm start, and navigate to http://localhost:8000/dummy. Inspect node_modules/core-js/internals/engine-v8-version.js at line 25 and trace the userAgent value when @rollup/plugin-commonjs compiles the core-js UMD module. Done means the browser no longer reports the TypeError.
Written by the indexing model from the issue text.
Description
- Rollup Plugin Name: @rollup/plugin-commonjs
- Rollup Plugin Version: 25.0.7
- Rollup Version: 4.9.6
- Operating System (or Browser): google-chrome-stable on NixOS (I use Nix btw)
- Node Version: 18.19.0 (version pulled in by flake.nix)
- Link to reproduction (⚠️ read below): https://github.com/JamesWilmot/corejs-rollupCommonJSplugin-reproduction
Expected Behavior
Run npm start and navigate to http://localhost:8000/dummy. plugin-commonjs 'compiles' https://github.com/zloirock/core-js UMD module into es6.
Actual Behavior
google-chrome reports following in console:
Uncaught TypeError: userAgent.match is not a function
at engine-v8-version.js:25:21
in /node_modules/core-js/internals/engine-v8-version.js
Additional Information
- Dominant language
- JavaScript
- Stars
- 3.8k
- Forks
- 635
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from rollup/plugins
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 4/5 3-5 days Newbie friendliness 52/100
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
Support js-yaml v5 Open
Difficulty 4/5 3-5 days Newbie friendliness 45/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
mksglu/context-mode#1200 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
neondatabase/website#5944 ·
-
module: core
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
bigbluebutton/bigbluebutton#25849 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
jaegertracing/jaeger-ui#4506 ·