Closed zibra closed 6 days ago
Hi @zibra ,
There are plenty of people out there using this package with webpack. As the error says, it looks like your compiler is doing misconfigured somehow.
If you are using es6 modules, then it's expected that dist/mjs
modules are used.
If you are using commonjs modules, then it's expected that dist/cjs
modules are used.
I don't see any issue based on the info that you have provided.
webpack 4 not support "export * as..." syntax; webpack 5 support it https://stackoverflow.com/questions/61718768/how-can-i-export-as-namespace-in-babel https://stackoverflow.com/questions/74717884/webpack-cannot-compile-file-that-uses-export-as-something
if you use vue-cli-service, this is solution
// vue.config.js
{
...
transpileDependencies: [/@streamparser\/json/],
}
Error from: @streamparser/json/dist/mjs/index.js 4:9