ionic-team / ionic-team/rollup-plugin-node-polyfills

`fs: true` does not work due to missing default export

Open
#11 2 comments 5 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
142
Forks
65
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.