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

Build error using node 14 - TypeError #17

Closed
BryceMehring opened this issue Apr 23, 2020 · 3 comments · Fixed by #18
Closed

Build error using node 14 - TypeError #17

BryceMehring opened this issue Apr 23, 2020 · 3 comments · Fixed by #18

Comments

@BryceMehring
Copy link

I'm getting the following error using this plugin with node 14.0.0:

(plugin progress) TypeError: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received type number (411)
TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received type number (411)
    at Object.writeFileSync (fs.js:1380:5)
    at Object.generateBundle (/project/node_modules/rollup-plugin-progress/dist/rollup-plugin-progress.js:62:10)
    at /project/node_modules/rollup/dist/shared/rollup.js:17441:25

See https://nodejs.org/api/fs.html#fs_fs_writefilesync_file_data_options on the valid arguments.

@linningmii
Copy link
Contributor

I have a PR to fix this type error, waiting for merge.

@sormy
Copy link

sormy commented Apr 28, 2020

This also happens on fresh NodeJS 12.x

@breautek
Copy link

This also happens on fresh NodeJS 12.x

Are you sure? For me this only happens on 14, and is when I first encountered this error myself. Downgrading back to 12.x worked for me. For the record I've tested Node 12.15.0 & Node 12.16.2, both of these versions worked for me.

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

Successfully merging a pull request may close this issue.

4 participants