plugins icon indicating copy to clipboard operation
plugins copied to clipboard

[@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

Open JamesWilmot opened this issue 2 years ago • 5 comments

  • 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

JamesWilmot avatar Feb 08 '24 06:02 JamesWilmot

Thanks for the issue. Unfortunately your reproduction doesn't meet the criteria for minimal. Please see the link in the issue template for guidance and try again, or we can convert this to a Q & A discussion.

shellscape avatar Feb 08 '24 12:02 shellscape

I have the same error. This error is somehow connected with @rollup/plugin-commonjs plugin

andre487 avatar Jun 15 '24 17:06 andre487