-
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
Module build failed (from ./node_modules/vue-loader/dist/index.js) #1973
Comments
Hello, thank you for taking time filling this issue! However, we kindly ask you to use our Issue Helper when creating new issues, in order to ensure every issue provides the necessary information for us to investigate. This explains why your issue has been automatically closed by me (your robot friend!). I hope to see your helper-created issue very soon! |
I have the same problem, possible a bug? |
Same issue here! |
Same issue! |
@yyx990803 @sodatea Hi guys, seems to be a problem, could you investigate? Thank you! |
Please open a new issue with the issue-helper, and provide the necessary information for us to reproduce the error. |
It is a compatibility issue between VueJs2 and vue-loader = 17.0.0 |
Same issue! |
Same issue, how to solve? |
Use |
Version 15 works a treat, thanks @sodatea |
Same issue here! |
Same issue! I am using Vue3.x , |
This is a viable solution vue 2.7.10 vue-loader 15.10.0 Webpack configuration module: {
rules: [
{
test: /\.vue$/,
use: {
loader: 'vue-loader',
options: {
sourceMap: true,
},
},
},
{
test: /\.js$/,
use: [
{
loader: 'babel-loader',
options: {
cacheDirectory: true,
},
},
],
exclude: /node_modules/,
},
{
test: /\.ts$/,
loader: 'ts-loader',
options: { transpileOnly: true, appendTsSuffixTo: [/\.vue$/] },
},
// ...
],
},
plugins: [
new VueLoaderPlugin(),
// ...
] |
They are incompatible with Vue 2 vuejs/vue-loader#1973 (comment) [skip ci] Signed-off-by: Christoph Wurst <[email protected]>
I get this error after running npm run dev and I get this error in the terminal:
ERROR in ./resources/js/erp/components_VueJs/example.vue Module build **failed** (from ./node_modules/vue-loader/dist/index.js): TypeError: Cannot read properties of undefined (reading 'styles') at Object.loader (C:\laragon\www\erp\node_modules\vue-loader\dist\index.js:70:34)
My package.json is:
and webpack.mix.js is:
and app.js
For installation I used the following commands:
npm install [email protected]
npm install -D vue-loader vue-template-compiler
npm run dev (and here the error appears)
The text was updated successfully, but these errors were encountered: