-
Notifications
You must be signed in to change notification settings - Fork 916
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
vue components use CommonJS 'module.exports' #1337
Comments
It should be |
@Justineo Sorry, writing error, got change. |
See breaking changes in v13.0.0.
// before
const Foo = require('./Foo.vue')
// after
const Foo = require('./Foo.vue').default |
BTW, I think you can upgrade your
|
@ulivz |
Could you provide your webpack's version? or it would be better to also provide a minimal reproduction repo link. |
@ulivz use the vue-cli webpack config, webpack version is 3.6.0 |
14.0+ no longer supports |
@yyx990803 I have a library that requires this logic to pass No matter what I try, it is always |
Is anyway to support module.exports in vue-cli3 created project ? |
Version
13.7.0
Steps to reproduce
in vue component file, if i use the commonjs way to export
What is expected?
compile is ok.
What is actually happening?
find error
The text was updated successfully, but these errors were encountered: