-
-
Notifications
You must be signed in to change notification settings - Fork 222
Can't import the named export X from non EcmaScript module (only default export is available) #229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hmm. It looks like something can't decide between cjs/mjs when used with Vue/nuxt. I haven't started working on web compatibility yet (it was meant to be a node-only package) so I would be glad for an advice how to make dual packages work with more bundlers. |
|
On another look, I'm pretty confident about my packages. The issue comes from Webpack. (Please report back if you find something that works for you. I'm pretty sure more people will run into this issue.) |
@MatthewAlbrecht what framework/bundler you use? What version? |
All three solutions resolve the issue of build failure, but I'm pretty sure Nuxt has a reason to exclude |
Here we go: nuxt/nuxt#6688 |
The next version of Nuxt.js (after
in |
Got this with a
Version 7 works fine. Using Webpack version from
|
@claytonfbell in version 8 I started to use new packages. I follow generally recommended way to define dual packages there. |
please see my comment: |
You might want to give Killy an hour or two to respond before creating another notification for all issue subscribers ;) |
I'm not trying to rush someone) I'm making a link between issues that those who will search in the future can find the answer more conveniently and faster, if there is one) |
If anyone else on // .storybook/main.js
module.exports = {
webpackFinal: async (config, { configType }) => {
config.module.rules.push({
type: 'javascript/auto',
test: /\.mjs$/,
use: [],
});
return config;
},
}; |
Upgrading to v8 yields a build error for my project:
There are errors for Grammar, Parser, Picker, compareSpecificity, compile, isTag, normalize, parse1 and parse1: source
How to go about this one?
The text was updated successfully, but these errors were encountered: