FredKSchott / rollup-plugin-polyfill-node

A modern Node.js polyfill for your Rollup bundle.
Other
174 stars 55 forks source link

bug: Failed to resolve module specifier "buffer" #58

Open mburger81 opened 1 year ago

mburger81 commented 1 year ago

We use your polyfill to make a crypto app using stenciljs which use under the hood rollup bundler.

It seems we are able to setup the polyfill in the configuration file but at the end we run into this error Failed to resolve module specifier "buffer". Relative references must start with either "/", "./", or "../". undefined

It's not possible to check which library is running into this issue, but it seems the reference of the package is wrong. Idk with its a thing should do the rollup-plugin-polyfill-nodeplugin or if we have to do something special to get it work

like an alias

odcey commented 1 year ago

I faced the same problem with buffer not being resolved on a react app, did you manage to resolve ?