-
Notifications
You must be signed in to change notification settings - Fork 910
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
export 'default' (imported as '__vue_script__') was not found in #997
Comments
Pleaser use forum.vuejs.org or chat.vuejs.org for questions. |
I finally found the solution and the reason. Setting modules with false means that babel don't resolve module system any more. npm install --save-dev babel-plugin-syntax-dynamic-import .babelrc {
"presets": [
[
"env",
{
"modules": false
}
]
],
"plugins": [
"syntax-dynamic-import"
]
} |
We couldn't see the whole project you mentioned. But I guess this error means you don't export anything in If you add a line of code: If a Vue sfc doesn't have any Thanks. |
@Jinjiang thanks |
@Jinjiang thanks |
.babelrc
when i use
import
in vue files, it occurs the following warnings. and it's ok withrequire
.package.json
is there any problems ?
The text was updated successfully, but these errors were encountered: