calvinmetcalf / rollup-plugin-node-builtins

138 stars 40 forks source link

Error: 'Buffer' is not exported by node_modules/buffer/index.js #51

Closed emeeks closed 5 years ago

emeeks commented 5 years ago

I updated one of my dependencies on Semiotic and now rollup is complaining that it can't find some of the global vars. I was already using rollup-plugin-node-builtins and thought it would as simple as adding rollup-plugin-node-globals but no luck. You can see the repo here: https://github.com/nteract/semiotic and the failure detailed in CI here: https://circleci.com/gh/nteract/semiotic/459 (which right now is Error: 'Buffer' is not exported by node_modules/buffer/index.js but has been, as I've moved things around, complaining about process and whether or not nextTick exists.

I'm one of those people that only digs into rollup because of some error or because I have to update to support, say, TypeScript, so if this is related to a different part of the rollup ecosystem or somehow dumb in some other way, just let me know.

emeeks commented 5 years ago

I realized this error was in the way I was configuring a test of the resulting distribution and that by listing process in the external array it was resolved.

mikemaccana commented 1 year ago

@emeeks can you please provide your full config?