Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fs: true does not work due to missing default export #11

Open
allenwu1973 opened this issue Sep 7, 2020 · 2 comments
Open

fs: true does not work due to missing default export #11

allenwu1973 opened this issue Sep 7, 2020 · 2 comments

Comments

@allenwu1973
Copy link

[!] Error: 'default' is not exported by node_modules/rollup-plugin-node-polyfills/polyfills/buffer-es6.js, imported by node_modules/rollup-plugin-node-polyfills/polyfills/browserify-fs.js
https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module
node_modules/rollup-plugin-node-polyfills/polyfills/browserify-fs.js (2:7)
1: import util$2 from 'util';
2: import buffer from 'buffer';

polyfills/buffer-es6.js is missing default export, adding this line seems to work.

export default { Buffer, INSPECT_MAX_BYTES, SlowBuffer, isBuffer, _kMaxLength: kMaxLength };
@KonnorRogers
Copy link

Im also running into this same issue.

@Errorbot1122
Copy link

its been 2 years, how hasn't this been fixed

jokester added a commit to jokester/rollup-plugin-node-polyfills that referenced this issue Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants