rollup-plugin-polyfill-node icon indicating copy to clipboard operation
rollup-plugin-polyfill-node copied to clipboard

bug: Invalid Internal Id

Open mburger81 opened this issue 3 years ago • 1 comments

I try to use your plugin instead of that one from @ionic, but I'm running into this issue:

Rollup: Invalid External Id
 'polyfill-node.https.js' is imported as an external by polyfill-node.https.js?commonjs-proxy, but is
 already an existing non-external module id.

I do nothing special, just loading the plugin in the "after" of rollup plugins, like i did in that one before

Any idea?

mburger81 avatar Jul 28 '22 08:07 mburger81

I think configuring also the @rollup/plugin-node-resolve plugin and set browser: true resolves the issue

I'm right?

nodeResolve(
        {
          browser: true,
          preferBuiltins: true
        }
      )

mburger81 avatar Jul 28 '22 11:07 mburger81