Skip to content

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

@allenwu1973

Description

@allenwu1973
[!] 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 };

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions