Open davideicardi opened 5 years ago
I don't know the cause, but now rollup.js will give you a hint.
A solution that worked for me was:
commonjs({ namedExports: { 'file-saver': [ 'saveAs' ] } })
I have the same issue in a StencilJS/ Rollup project.
@davideicardi thanks for the 1.3.8
hint!
I'm also experiencing this problem in a StencilJS v2 project which has deprecated support for the commonjs workaround by @remailednet.
Disappointing that this hasn't been addressed in almost 2-1/2 years. We will most likely have to roll back to v1.3.8.
Adding @rollup/plugin-commonjs plugin to the rollup config should solve the problem.
https://rollupjs.org/troubleshooting/#error-name-is-not-exported-by-module
I'm trying to use file-saver version 2.0.0 with rollup, but I get the following error:
I'm importing it using:
tried also:
Version 1.3.8 works correctly. I don't understand exactly why.
Any idea?