rollup / plugins

🍣 The one-stop shop for official Rollup plugins
MIT License
3.57k stars 568 forks source link

[@rollup/plugin-commonjs] Uncaught TypeError: utils.Buf8 is not a constructor at strings.js:27:16 in pako #1671

Open JamesWilmot opened 4 months ago

JamesWilmot commented 4 months ago

Expected Behavior

Run npm start and navigate to http://localhost:8000/dummy. plugin-commonjs 'compiles' pako UMD module into es6.

Actual Behavior

google-chrome reports following in console:

strings.js:27 Uncaught TypeError: utils.Buf8 is not a constructor
    at strings.js:27:16

in /node_modules/pako/lib/utils/strings.js

Additional Information

shellscape commented 4 months ago

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.