I have webpack-cli installed on my laravel project. I don’t know why first of all we need it to run my vue app but this is causing an error:
When I run npm run dev or npm run hot
[webpack-cli] Error: Cannot find module 'webpack/lib/rules/DescriptionDataMatcherRulePlugin'
Require stack:
- C:UsersVirussDesktoptest-meme-librarymeme-librarynode_modulesvue-loaderlibplugin-webpack5.js
- C:UsersVirussDesktoptest-meme-librarymeme-librarynode_modulesvue-loaderlibplugin.js
- C:UsersVirussDesktoptest-meme-librarymeme-librarynode_modulesvue-loaderlibindex.js
- C:UsersVirussDesktoptest-meme-librarymeme-librarynode_moduleslaravel-mixsrccomponentsVue.js
- C:UsersVirussDesktoptest-meme-librarymeme-librarynode_moduleslaravel-mixsrccomponentsComponentRegistrar.js
- C:UsersVirussDesktoptest-meme-librarymeme-librarynode_moduleslaravel-mixsrcMix.js
- C:UsersVirussDesktoptest-meme-librarymeme-librarynode_moduleslaravel-mixsetupwebpack.config.js
- C:UsersVirussDesktoptest-meme-librarymeme-librarynode_moduleswebpack-clilibwebpack-cli.js
- C:UsersVirussDesktoptest-meme-librarymeme-librarynode_moduleswebpack-clilibbootstrap.js
- C:UsersVirussDesktoptest-meme-librarymeme-librarynode_moduleswebpack-clibincli.js
- C:UsersVirussDesktoptest-meme-librarymeme-librarynode_moduleswebpackbinwebpack.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
at Function.Module._load (internal/modules/cjs/loader.js:746:27)
at Module.require (internal/modules/cjs/loader.js:974:19)
at require (internal/modules/cjs/helpers.js:93:18)
at Object.<anonymous> (C:UsersVirussDesktoptest-meme-librarymeme-librarynode_modulesvue-loaderlibplugin-webpack5.js:6:42)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:12)
at Module.require (internal/modules/cjs/loader.js:974:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\Users\Viruss\Desktop\test-meme-library\meme-library\node_modules\vue-loader\lib\plugin-webpack5.js',
'C:\Users\Viruss\Desktop\test-meme-library\meme-library\node_modules\vue-loader\lib\plugin.js',
'C:\Users\Viruss\Desktop\test-meme-library\meme-library\node_modules\vue-loader\lib\index.js',
'C:\Users\Viruss\Desktop\test-meme-library\meme-library\node_modules\laravel-mix\src\components\Vue.js',
'C:\Users\Viruss\Desktop\test-meme-library\meme-library\node_modules\laravel-mix\src\components\ComponentRegistrar.js',
'C:\Users\Viruss\Desktop\test-meme-library\meme-library\node_modules\laravel-mix\src\Mix.js',
'C:\Users\Viruss\Desktop\test-meme-library\meme-library\node_modules\laravel-mix\setup\webpack.config.js',
'C:\Users\Viruss\Desktop\test-meme-library\meme-library\node_modules\webpack-cli\lib\webpack-cli.js',
'C:\Users\Viruss\Desktop\test-meme-library\meme-library\node_modules\webpack-cli\lib\bootstrap.js',
'C:\Users\Viruss\Desktop\test-meme-library\meme-library\node_modules\webpack-cli\bin\cli.js',
'C:\Users\Viruss\Desktop\test-meme-library\meme-library\node_modules\webpack\bin\webpack.js'
]
}
Vue is installed also vue-loader, can’t understand why it can’t find those files. Also, I looked at the node_modules everything is in there …
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
Closed
dsine-de opened this issue
Aug 2, 2021
· 41 comments
Comments
Version
16.3.3
Reproduction link
https://github.com/dsine-de/vue-loader-webpack-update
Steps to reproduce
Clone the repo & run «npm i», then run «npm run dev» (or «npx webpack»)
What is expected?
There should not be an error: «Cannot find module ‘webpack/lib/rules/DescriptionDataMatcherRulePlugin'»
What is actually happening?
[webpack-cli] Failed to load 'C:repositoriesvue-loader-webpack-updatewebpack.config.cjs' config
[webpack-cli] Error: Cannot find module 'webpack/lib/rules/DescriptionDataMatcherRulePlugin'
Require stack:
- C:repositoriesvue-loader-webpack-updatenode_modulesvue-loaderlibplugin-webpack5.js
- C:repositoriesvue-loader-webpack-updatenode_modulesvue-loaderlibplugin.js
- C:repositoriesvue-loader-webpack-updatenode_modulesvue-loaderlibindex.js
- C:repositoriesvue-loader-webpack-updatewebpack.config.cjs
- C:repositoriesvue-loader-webpack-updatenode_moduleswebpack-clilibwebpack-cli.js
- C:repositoriesvue-loader-webpack-updatenode_moduleswebpack-clilibbootstrap.js
- C:repositoriesvue-loader-webpack-updatenode_moduleswebpack-clibincli.js
- C:repositoriesvue-loader-webpack-updatenode_moduleswebpackbinwebpack.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (C:repositoriesvue-loader-webpack-updatenode_modulesv8-compile-cachev8-compile-cache.js:159:20)
at Object.<anonymous> (C:repositoriesvue-loader-webpack-updatenode_modulesvue-loaderlibplugin-webpack5.js:6:42)
at Module._compile (C:repositoriesvue-loader-webpack-updatenode_modulesv8-compile-cachev8-compile-cache.js:192:30)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\repositories\vue-loader-webpack-update\node_modules\vue-loader\lib\plugin-webpack5.js',
'C:\repositories\vue-loader-webpack-update\node_modules\vue-loader\lib\plugin.js',
'C:\repositories\vue-loader-webpack-update\node_modules\vue-loader\lib\index.js',
'C:\repositories\vue-loader-webpack-update\webpack.config.cjs',
'C:\repositories\vue-loader-webpack-update\node_modules\webpack-cli\lib\webpack-cli.js',
'C:\repositories\vue-loader-webpack-update\node_modules\webpack-cli\lib\bootstrap.js',
'C:\repositories\vue-loader-webpack-update\node_modules\webpack-cli\bin\cli.js',
'C:\repositories\vue-loader-webpack-update\node_modules\webpack\bin\webpack.js'
]
}
DhiaDjobbi reacted with laugh emoji
DhiaDjobbi reacted with hooray emoji
DhiaDjobbi and trusktr reacted with heart emoji
Same for me on macOS Big Sur 11.15.1.
Same for me on Linux (Manjaro).
Same for me on Windows 10. Have to deploy manually until fixed.
sodatea
added a commit
that referenced
this issue
Aug 2, 2021
I update the Vue. Works Great for me!
npm vue-loader
anafro, harabisj, DustinJoosen, leecrosdale, agounane, vitordesousa, JuanDeLeon, and rikyyudistira reacted with hooray emoji
DustinJoosen, leecrosdale, vitordesousa, JuanDeLeon, haibozxx, and andreipredafl reacted with heart emoji
This also resolve my issue with Webpack and Vue 2.
I am a Laravel user.
npm i vue-loader
updated Vue-loader from 15.9.6 to 15.9.8 fixed this for me using Laravel 7.30.4 and Vue 2.6.12
"vue": "^2.6.12",
"vue-loader": "^15.9.8",
matias2018, mustapha-abdelaziz, benrobs, vesaka, leecrosdale, Cris223511, homayoonahmadi, anandamahdar, JuanDeLeon, NinjaLabs-Dev, and 2 more reacted with hooray emoji
xElGrego, wifixor97, 0x15f, wnicolas, GeeksRock, JannieT, Ajax-Energy, AliAlsamraay, subtain-haider, ELINSOPIAH03, and 35 more reacted with heart emoji
npm i vue-loader
worked for me
Inefable11, DhiaDjobbi, luhansalimena, Iloba, Kmahamadou, Umid-Berdiev, GurskSoftware, harabisj, leecrosdale, EdwinPatinho, and 6 more reacted with heart emoji
I am a Laravel user.
npm i vue-loader
updated Vue-loader from 15.9.6 to 15.9.8 fixed this for me using Laravel 7.30.4 and Vue 2.6.12"vue": "^2.6.12", "vue-loader": "^15.9.8",
This worked for me as well!
shobitg22, ibr01998, Kmahamadou, itoktoni, harabisj, and emerick-pro reacted with heart emoji
updating vue-loader worked for me as well
npm i vue-loader worked for me.
npm i vue-loader also worked for me. Thanks
I am a Laravel user and yarn add vue-loader
worked for me.
npm i vue-loader worked for me too. Thank You
npm i vue-loader worked for me too—laravel 8 w10
I’m using vue-loader version 16.5.0
in combination with webpack version 5.51.1
and running into this error. Running npm i vue-loader
doesn’t do anything for me.
Any other suggestions?
Node version: 15.14.0
NPM version: 7.16.0
Also getting this error, but fixed it. Installed dependencies before the fix…
deps: "vue": "^3.2.6"
devDeps:
"@vue/compiler-sfc": "^3.1.2",
"vue-loader": "16.2.0",
"webpack": "^5.39.0",
"webpack-cli": "^4.7.2"
After the fix…
deps: "vue": "^3.2.6"
devDeps:
"@vue/compiler-sfc": "^3.2.6,
"vue-loader": "^15.9.8",
"webpack": "^5.39.0",
"webpack-cli": "^4.7.2"
Notice the vue-loader
version — this is what fixed it for me. And I updated @vue/compiler-sfc
to match the vue
version.
npm i vue-loader worked for me too win10 laravel8
I solved just with npm update (win10 and laravel8)
I have had same error and solved it by running:
npm update
I have same error.
Solution problem => npm i vue-loader
I am a Laravel user.
npm i vue-loader
updated Vue-loader from 15.9.6 to 15.9.8 fixed this for me using Laravel 7.30.4 and Vue 2.6.12"vue": "^2.6.12", "vue-loader": "^15.9.8",
It worked for me! thanks so much!
npm i vue-loader
worked for me
Same for me. Thank you
I am a Laravel user.
npm i vue-loader
updated Vue-loader from 15.9.6 to 15.9.8 fixed this for me using Laravel 7.30.4 and Vue 2.6.12"vue": "^2.6.12", "vue-loader": "^15.9.8",
npm i vue-loader worked for me
I have the same error, laravel 8, I use: npm update
npm i vue-loader
also worked for me
Thanks a lot
npm i vue-loader
worked for me too
npm i vue-loader also worked for me. Thanks
I am too
npm i vue-loader This command work for me. I am using Laravel 8 and Vue 3
I am a Laravel user.
npm i vue-loader
updated Vue-loader from 15.9.6 to 15.9.8 fixed this for me using Laravel 7.30.4 and Vue 2.6.12"vue": "^2.6.12", "vue-loader": "^15.9.8",
thanks thats worked !
Perfecto solucione aplicando solamente npm update vue-loader, trabajando con:
Package.json
«vue»: «^2.6.12»,
«vue-loader»: «^15.9.7»,
«vue-template-compiler»: «^2.6.12»
Composer.json
«require»: {
«php»: «^7.3|^8.0»,
«fruitcake/laravel-cors»: «^2.0»,
«guzzlehttp/guzzle»: «^7.0.1»,
«laravel/framework»: «^8.54»,
«laravel/sanctum»: «^2.11»,
«laravel/tinker»: «^2.5»,
npm update vue-loader
fixed it for me
npm i vue-loader worked for me on win 7 and laravel 8 , Thank You
Running npm i vue-loader fixed the issue for me as well for L8 on Win10.
Works for me with VieJS 3:
{ "dependencies": { "@babel/plugin-proposal-optional-chaining": "^7.16.0", "vue": "^3.2.20" }, "devDependencies": { "@vue/compiler-sfc": "^3.2.20", "laravel-mix": "^6.0.6", "lodash": "^4.17.19", "postcss": "^8.1.14", "resolve-url-loader": "^4.0.0", "sass": "^1.43.4", "sass-loader": "^12.1.0", "vue-loader": "^16.2.0" } }
I am a Laravel user.
npm i vue-loader
updated Vue-loader from 15.9.6 to 15.9.8 fixed this for me using Laravel 7.30.4 and Vue 2.6.12"vue": "^2.6.12", "vue-loader": "^15.9.8",
This solved my issue. Thank you
I am a Laravel user.
npm i vue-loader
updated Vue-loader from 15.9.6 to 15.9.8 fixed this for me using Laravel 7.30.4 and Vue 2.6.12"vue": "^2.6.12", "vue-loader": "^15.9.8",
nice this work for me too
Version
16.3.3
Reproduction link
https://github.com/dsine-de/vue-loader-webpack-update
Steps to reproduce
Clone the repo & run «npm i», then run «npm run dev» (or «npx webpack»)
What is expected?
There should not be an error: «Cannot find module ‘webpack/lib/rules/DescriptionDataMatcherRulePlugin'»
What is actually happening?
[webpack-cli] Failed to load 'C:repositoriesvue-loader-webpack-updatewebpack.config.cjs' config [webpack-cli] Error: Cannot find module 'webpack/lib/rules/DescriptionDataMatcherRulePlugin' Require stack: - C:repositoriesvue-loader-webpack-updatenode_modulesvue-loaderlibplugin-webpack5.js - C:repositoriesvue-loader-webpack-updatenode_modulesvue-loaderlibplugin.js - C:repositoriesvue-loader-webpack-updatenode_modulesvue-loaderlibindex.js - C:repositoriesvue-loader-webpack-updatewebpack.config.cjs - C:repositoriesvue-loader-webpack-updatenode_moduleswebpack-clilibwebpack-cli.js - C:repositoriesvue-loader-webpack-updatenode_moduleswebpack-clilibbootstrap.js - C:repositoriesvue-loader-webpack-updatenode_moduleswebpack-clibincli.js - C:repositoriesvue-loader-webpack-updatenode_moduleswebpackbinwebpack.js at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15) at Function.Module._load (node:internal/modules/cjs/loader:778:27) at Module.require (node:internal/modules/cjs/loader:1005:19) at require (C:repositoriesvue-loader-webpack-updatenode_modulesv8-compile-cachev8-compile-cache.js:159:20) at Object.<anonymous> (C:repositoriesvue-loader-webpack-updatenode_modulesvue-loaderlibplugin-webpack5.js:6:42) at Module._compile (C:repositoriesvue-loader-webpack-updatenode_modulesv8-compile-cachev8-compile-cache.js:192:30) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Module.require (node:internal/modules/cjs/loader:1005:19) { code: 'MODULE_NOT_FOUND', requireStack: [ 'C:\repositories\vue-loader-webpack-update\node_modules\vue-loader\lib\plugin-webpack5.js', 'C:\repositories\vue-loader-webpack-update\node_modules\vue-loader\lib\plugin.js', 'C:\repositories\vue-loader-webpack-update\node_modules\vue-loader\lib\index.js', 'C:\repositories\vue-loader-webpack-update\webpack.config.cjs', 'C:\repositories\vue-loader-webpack-update\node_modules\webpack-cli\lib\webpack-cli.js', 'C:\repositories\vue-loader-webpack-update\node_modules\webpack-cli\lib\bootstrap.js', 'C:\repositories\vue-loader-webpack-update\node_modules\webpack-cli\bin\cli.js', 'C:\repositories\vue-loader-webpack-update\node_modules\webpack\bin\webpack.js' ] }
i am facing same issue resolve by running following commond
npm update vue-loader
Corre este comando npm install -g @vue/cli
I fixed this problem running:
npm update vue-loader
BrandonSurowiec
added a commit
to BrandonSurowiec/laravel-mix
that referenced
this issue
Jun 8, 2022
BrandonSurowiec
added a commit
to BrandonSurowiec/laravel-mix
that referenced
this issue
Jun 8, 2022
While I am trying to run npm run dev I am facing the following error: Error: Cannot find module ‘webpack/lib/rules/DescriptionDataMatcherRulePlugin’ in Laravel. We are going to Learn about All Possible Solutions So Lets Get Start with This Article.
Contents
- How Error: Cannot find module ‘webpack/lib/rules/DescriptionDataMatcherRulePlugin’ Occurs?
- How To Solve Error: Cannot find module ‘webpack/lib/rules/DescriptionDataMatcherRulePlugin’?
- Solution 1: Install vue-loader
- Solution 2: Update vue-loader
- Solution 3: Update Your Package.json
- Conclusion
While I am trying to run npm run dev i am facing the following error:
[webpack-cli] Error: Cannot find module 'webpack/lib/rules/DescriptionDataMatcherRulePlugin'
Require stack:
So here I am writing all the possible solutions that I have tried to resolve this error.
How To Solve Error: Cannot find module ‘webpack/lib/rules/DescriptionDataMatcherRulePlugin’?
- How To Solve Error: Cannot find module ‘webpack/lib/rules/DescriptionDataMatcherRulePlugin’?
To Solve Error: Cannot find module ‘webpack/lib/rules/DescriptionDataMatcherRulePlugin’ This error may occur Because of Vue-Loader. If you do not have an installed vue-loader then just install it in your project by running this command: npm i vue-loader Now, you can Run npm run dev And Your error must be solved. Thank you.
- Error: Cannot find module ‘webpack/lib/rules/DescriptionDataMatcherRulePlugin’
To Solve Error: Cannot find module ‘webpack/lib/rules/DescriptionDataMatcherRulePlugin’ If You have vue-loader already installed then Just try to update it. To update vue-loader you need to run this command in your terminal. Just like This: npm update vue-loader And now, your error must be solved. Thanks.
Solution 1: Install vue-loader
This error may occur Because of Vue-Loader. If you do not have an installed vue-loader then just install it in your project by running this command.
npm i vue-loader
Now, you can Run
npm run dev
And Your error must be solved. Thank you.
Solution 2: Update vue-loader
If You have vue-loader already installed then Just try to update it. To update vue-loader you need to run this command in your terminal. Just like This.
npm update vue-loader
And now, your error must be solved. Thanks.
Solution 3: Update Your Package.json
Laravel is manually adding vue-loader:^15.9.7 so You have to edit your Package.json file and find vue-loader. and Replace version with 17.0.0 OR 15.10.0.
vue-loader:^17.0.0
OR
vue-loader:^15.10.0
Then run this command if you’re NPM user.
npm install
Then
npm run dev
For Yarn users run this command.
yarn
then
yarn dev
And now, Your error must be resolved. Thank you.
Conclusion
It’s all About this error. Hope We solved Your error. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?
Also, Read
- ImportError: cannot import name ‘docevents’ from ‘botocore.docs.bcdoc’
- Error: Cannot find module ‘dotenv’
- cannot read properties of null (reading ‘addEventListener’)
- A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received
- The filename, directory name, or volume label syntax is incorrect
Содержание
- [Solved] Error: Cannot find module ‘webpack/lib/rules/DescriptionDataMatcherRulePlugin’
- How Error: Cannot find module ‘webpack/lib/rules/DescriptionDataMatcherRulePlugin’ Occurs?
- How To Solve Error: Cannot find module ‘webpack/lib/rules/DescriptionDataMatcherRulePlugin’?
- Solution 1: Install vue-loader
- Solution 2: Update vue-loader
- Solution 3: Update Your Package.json
- Conclusion
- [Solved] [webpack-cli] Error: Cannot find module ‘webpack/lib/rules/DescriptionDataMatcherRulePlugin’
- How To Solve [webpack-cli] Error: Cannot find module ‘webpack/lib/rules/DescriptionDataMatcherRulePlugin’ error?
- Answer 1: Install vue-loader
- Answer 2: Update vue-loader
- Final Word
- Ошибка: не удается найти модуль webpack / lib / rules / DescriptionDataMatcherRulePlugin. Требуется стек:
- 5 ответов
- Crash when vue() invoked. #3039
- Comments
- Description:
- Steps To Reproduce:
- Laravel error cannot find module webpack lib rules descriptiondatamatcherruleplugin
[Solved] Error: Cannot find module ‘webpack/lib/rules/DescriptionDataMatcherRulePlugin’
While I am trying to run npm run dev I am facing the following error: Error: Cannot find module ‘webpack/lib/rules/DescriptionDataMatcherRulePlugin’ in Laravel. We are going to Learn about All Possible Solutions So Lets Get Start with This Article.
How Error: Cannot find module ‘webpack/lib/rules/DescriptionDataMatcherRulePlugin’ Occurs?
While I am trying to run npm run dev i am facing the following error:
So here I am writing all the possible solutions that I have tried to resolve this error.
How To Solve Error: Cannot find module ‘webpack/lib/rules/DescriptionDataMatcherRulePlugin’?
- How To Solve Error: Cannot find module ‘webpack/lib/rules/DescriptionDataMatcherRulePlugin’?
To Solve Error: Cannot find module ‘webpack/lib/rules/DescriptionDataMatcherRulePlugin’ This error may occur Because of Vue-Loader. If you do not have an installed vue-loader then just install it in your project by running this command: npm i vue-loader Now, you can Run npm run dev And Your error must be solved. Thank you.
Error: Cannot find module ‘webpack/lib/rules/DescriptionDataMatcherRulePlugin’
To Solve Error: Cannot find module ‘webpack/lib/rules/DescriptionDataMatcherRulePlugin’ If You have vue-loader already installed then Just try to update it. To update vue-loader you need to run this command in your terminal. Just like This: npm update vue-loader And now, your error must be solved. Thanks.
Solution 1: Install vue-loader
This error may occur Because of Vue-Loader. If you do not have an installed vue-loader then just install it in your project by running this command.
Now, you can Run
And Your error must be solved. Thank you.
Solution 2: Update vue-loader
If You have vue-loader already installed then Just try to update it. To update vue-loader you need to run this command in your terminal. Just like This.
And now, your error must be solved. Thanks.
Solution 3: Update Your Package.json
Laravel is manually adding vue-loader:^15.9.7 so You have to edit your Package.json file and find vue-loader. and Replace version with 17.0.0 OR 15.10.0.
Then run this command if you’re NPM user.
For Yarn users run this command.
And now, Your error must be resolved. Thank you.
Conclusion
It’s all About this error. Hope We solved Your error. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?
Источник
[Solved] [webpack-cli] Error: Cannot find module ‘webpack/lib/rules/DescriptionDataMatcherRulePlugin’
While I am running npm run dev command in my Laravel VueJS project I am facing [webpack-cli] Error: Cannot find module ‘webpack/lib/rules/DescriptionDataMatcherRulePlugin’ error So Today In this Solvderror Article, we’ll discuss how this error occurs and what are the possible solution for this error.
How To Solve [webpack-cli] Error: Cannot find module ‘webpack/lib/rules/DescriptionDataMatcherRulePlugin’ error?
To Solve [webpack-cli] Error: Cannot find module ‘webpack/lib/rules/DescriptionDataMatcherRulePlugin’ error There are two possible reasons for this error the First one is You are Using an Older version of the vue-loader and the Second One is You don’t have a vue-loader installed. So You Have to either Update the vue-loader Or You need to install the vue-loader in your project. To update the vue-loader Just run this command: npm update vue-loader To Install the vue-loader run this command: npm i vue-loader Then, Run your project with this command: npm run dev Now, Your error must be solved Thank You.
To Solve [webpack-cli] Error: Cannot find module ‘webpack/lib/rules/DescriptionDataMatcherRulePlugin’ error Laravel has added vue-loader by default, But maybe it is an older version So First of all Open Your package.json file and add vue-loade‘s latest version: vue-loader:^15.9.8 Then run npm install if you are the npm user: npm install and then Run your project with npm run dev Now, Your error must be fixed. Thanks.
Answer 1: Install vue-loader
There are two possible reasons for this error the First one is You are Using an Older version of the vue-loader and the Second One is You don’t have a vue-loader installed. So You Have to either Update the vue-loader Or You need to install the vue-loader in your project. To update the vue-loader Just run this command.
To Install the vue-loader run this command.
Then, Run your project with this command.
Now, Your error must be solved Thank You.
Answer 2: Update vue-loader
Laravel has added vue-loader by default, But maybe it is an older version So First of all Open Your package.json file and add vue-loade‘s latest version.
Then run npm install if you are the npm user.
and then Run your project with
Now, Your error must be fixed. Thanks.
Final Word
So This is All About this error When You Install or update the vue-loader then your error will be solved. Hope This Above 2 Answer May helped to solve your warning. Comment Below which answer worked For You. Thank You.
Источник
Ошибка: не удается найти модуль webpack / lib / rules / DescriptionDataMatcherRulePlugin. Требуется стек:
У меня установлен webpack-cli в моем проекте laravel. Я не знаю, зачем в первую очередь нам это нужно для запуска моего приложения vue, но это вызывает ошибку:
Когда я запускаю npm run dev или npm run hot
Vue установлен также vue-loader, не могу понять, почему он не может найти эти файлы. Кроме того, я посмотрел на node_modules, все там есть .
5 ответов
Вам нужно обновить свой vue-loader
И если он не установлен, установите его
Laravel по умолчанию добавил версию Vue-loader 15.9.7 . Мне нужно вручную обновить vue-loader:^15.9.8 в пакете JSON, чтобы устранить ошибку.
Затем выполните yarn и yarn dev или npm install и npm run dev
У меня была эта ошибка в моем проекте. После поиска я обнаружил, что мне нужно обновить загрузчик Vue. А если он не установлен, установите его здесь. Поэтому я добавляю эту строку в свой терминал в своем проекте.
Должен работать нормально, если пакет vue-loader уже установлен.
Некоторые из этих обновлений являются основными выпусками. Запуск npm update не обновит их версию. Основные выпуски никогда не обновляются таким образом, потому что они (по определению) вносят критические изменения, а npm хочет избавить вас от проблем.
Иногда пакеты npm не устанавливаются должным образом, я использовал следующий метод для решения этой проблемы:
- Удалите папку модулей узлов из вашего проекта.
- Выполните следующие команды
- npm install -g npm-check-updates
- нку-у
- установка/обновление npm.**
Источник
Crash when vue() invoked. #3039
- Laravel Mix Version: 6.0.25
- Node Version ( node -v ):v14.17.3
- NPM Version ( npm -v ): 7.20.0
- OS: Ubuntu 20.04
Description:
As soon as .vue() is in my webpack.mix.js file it crashes.
Steps To Reproduce:
I tried npm -i vue-loader —save-dev but npx mix then complains:
The text was updated successfully, but these errors were encountered:
I just ran into this same error when running php artisan breeze:install vue and then running npm run dev
Following to find a fix.
I have the same problem. Just stopped working this morning after running yarn update . It was working fine last night. I thought maybe Webpack had a breaking change in their new version (it upgraded from 5.44 -> 5.45 this morning), so I tried playing with different Webpack versions. I got very strange errors (for example, it can’t find css-loader and babel-loader, even though they are installed, etc.) when I tried that.
I rolled back the changes to my yarn.lock , and only ran yarn install (instead of upgrading) and everything is working again. I have a diff of the changes below.
- Laravel Mix Version: 6.0.25
- Node Version (node -v):v16.5.0
- NPM Version (npm -v): 7.19.1
- OS: macOS 11.4 M1 chip
I’m having the same problem on an existing project and also on a brand new install of Laravel with jetstream.
Laravel Mix Version: 6.0.25
Node Version (node -v):v14.17.3
NPM Version (npm -v): 7.12.0
OS: Mac OS 11.4 Big Sur
Steps to reproduct
choose inertia and after install and build it fails and gives Error: Cannot find module ‘webpack/lib/rules/DescriptionDataMatcherRulePlugin’
Источник
Laravel error cannot find module webpack lib rules descriptiondatamatcherruleplugin
but this command show errors: npm run watch n
ERROR in ./resources/js/components/ExampleComponent.vue 1:0nModule parse failed: Unexpected token (1:0)nYou may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loadersn> n|
Am using a new fresh laravel of version 8, I installed today n»,»body_in_markdown»:»I installed node js and all plugins, I can run npm in cmd too well nnbut this command show errors: npm run watchnn«`nERROR in ./resources/js/components/ExampleComponent.vue 1:0nModule parse failed: Unexpected token (1:0)nYou may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loadersn> n|
ERROR in ./resources/js/components/ExampleComponent.vue 1:0 n n
How did you get the ExampleComponent.vue that does not come with a new fresh laravel of version 8 n»,»bodyInMarkdown»:»@niyo nn> ERROR in ./resources/js/components/ExampleComponent.vue 1:0nnHow did you get the ExampleComponent.vue that does not come with a new fresh laravel of version 8nn»,»replies»:[<«id»:723564,»conversation_id»:162257,»body»:»
Yes but where did the ./resources/js/components/ExampleComponent.vue file come from? the one that you do not have a loader to load it. n
Read the error. n
check out this tutorial: n
view this tutorial it will help you. n
Laravel does not ship with a vue component. Where did you get laravel from? n
Are you trying to use vue with laravel? n»,»bodyInMarkdown»:»Laravel does not ship with a vue component. Where did you get laravel from?nnAre you trying to use vue with laravel?»,»replies»:[<«id»:723581,»conversation_id»:162257,»body»:»
I just used these commands: n
composer require laravel/ui —devnnphp artisan ui vue —authnnnpm install laravel-mix-purgecss —save-devnnnpm installnnnpm run watchnn n
I see you edited the original post. You installed vue and the other needed packages. n
I just used these commands only: n
composer require laravel/ui —devnnphp artisan ui vue —authnnnpm install laravel-mix-purgecss —save-devnnnpm installnnnpm run watchn n
composer require laravel/ui —devnnphp artisan ui vue —authnnnpm install laravel-mix-purgecss —save-devnnnpm installnnnpm run watchn n
and it worked fine ? n»,»bodyInMarkdown»:»@niyo nnI did this:nn«`ncomposer require laravel/ui —devnnphp artisan ui vue —authnnnpm install laravel-mix-purgecss —save-devnnnpm installnnnpm run watchn«`nnand it worked fine ? «,»replies»:[<«id»:754038,»conversation_id»:162257,»body»:»
PS C:\xampp\htdocs\laravel8> npm install laravel-mix-purgecss —save-devnnpm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecatednnpm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecatednnpm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.nnpm WARN deprecated popper.js@1.16.1: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1nnadded 812 packages, and audited 813 packages in 4mnn87 packages are looking for fundingnnfound 0 vulnerabilitiesn n
Glad that I can help n»,»bodyInMarkdown»:»Glad that I can help»,»replies»:[<«id»:754837,»conversation_id»:162257,»body»:»
composer require laravel/ui —devnnphp artisan ui vue —authnnnpm install laravel-mix-purgecss —save-devnnnpm installnnnpm run watchn n
Источник
While I am running npm run dev command in my Laravel VueJS project I am facing [webpack-cli] Error: Cannot find module ‘webpack/lib/rules/DescriptionDataMatcherRulePlugin’ error So Today In this Solvderror Article, we’ll discuss how this error occurs and what are the possible solution for this error.
Contents
- How To Solve [webpack-cli] Error: Cannot find module ‘webpack/lib/rules/DescriptionDataMatcherRulePlugin’ error?
- Answer 1: Install vue-loader
- Answer 2: Update vue-loader
- Final Word
- Also, Look at this solvderror
How To Solve [webpack-cli] Error: Cannot find module ‘webpack/lib/rules/DescriptionDataMatcherRulePlugin’ error?
To Solve [webpack-cli] Error: Cannot find module ‘webpack/lib/rules/DescriptionDataMatcherRulePlugin’ error There are two possible reasons for this error the First one is You are Using an Older version of the vue-loader and the Second One is You don’t have a vue-loader installed. So You Have to either Update the vue-loader Or You need to install the vue-loader in your project. To update the vue-loader Just run this command: npm update vue-loader To Install the vue-loader run this command: npm i vue-loader Then, Run your project with this command: npm run dev Now, Your error must be solved Thank You.
[webpack-cli] Error: Cannot find module ‘webpack/lib/rules/DescriptionDataMatcherRulePlugin’
To Solve [webpack-cli] Error: Cannot find module ‘webpack/lib/rules/DescriptionDataMatcherRulePlugin’ error Laravel has added vue-loader by default, But maybe it is an older version So First of all Open Your package.json file and add vue-loade‘s latest version: vue-loader:^15.9.8 Then run npm install if you are the npm user: npm install and then Run your project with npm run dev Now, Your error must be fixed. Thanks.
Answer 1: Install vue-loader
There are two possible reasons for this error the First one is You are Using an Older version of the vue-loader and the Second One is You don’t have a vue-loader installed. So You Have to either Update the vue-loader Or You need to install the vue-loader in your project. To update the vue-loader Just run this command.
npm update vue-loader
To Install the vue-loader run this command.
npm i vue-loader
Then, Run your project with this command.
npm run dev
Now, Your error must be solved Thank You.
Answer 2: Update vue-loader
Laravel has added vue-loader by default, But maybe it is an older version So First of all Open Your package.json file and add vue-loade‘s latest version.
vue-loader:^15.9.8
Then run npm install if you are the npm user.
npm install
and then Run your project with
npm run dev
Now, Your error must be fixed. Thanks.
Final Word
So This is All About this error When You Install or update the vue-loader then your error will be solved. Hope This Above 2 Answer May helped to solve your warning. Comment Below which answer worked For You. Thank You.
Also, Look at this solvderror
- You Are Running Create-React-App 4.0.3, Which Is Behind The Latest Release (5.0.0)
- ReactDOM.render is no longer supported in React 18
We Are Going To Discuss About Error: Cannot find module ‘webpack/lib/rules/DescriptionDataMatcherRulePlugin’ Require stack:. So lets Start this NodeJS Article.
Error: Cannot find module ‘webpack/lib/rules/DescriptionDataMatcherRulePlugin’ Require stack:
How to resolve Error: Cannot find module ‘webpack/lib/rules/DescriptionDataMatcherRulePlugin’ Require stack:
You have to replace your vue-loadernpm replace vue-loader
And if it’s not put in, set up itnpm i vue-loader
Error: Cannot find module ‘webpack/lib/rules/DescriptionDataMatcherRulePlugin’ Require stack:
You have to replace your vue-loadernpm replace vue-loader
And if it’s not put in, set up itnpm i vue-loader
Solution 1
You have to replace your vue-loader
npm replace vue-loader
And if it’s not put in, set up it
npm i vue-loader
Original Author Ali Sharifi Neyestani Of This Content
Solution 2
Laravel added the 15.9.7
model of Vue-loader by default. I’ve to manually replace the vue-loader:^15.9.8
within the bundle JSON to resolve the error.
Then do yarn
and yarn dev
or npm set up
and npm run dev
Original Author LogGurkha Of This Content
Solution 3
I had this error in my challenge. After looking for it, I found that I’ve to improve the Vue loader. And if not put in, go forward and set up it from here. So I add this line to my terminal in my challenge.
npm set up -D vue-loader vue-template-compiler
Original Author MostafaHashem Of This Content
Solution 4
working
npm replace vue-loader
ought to do the work simply tremendous if the vue-loader bundle is already put in.
Original Author Mwigo Jonathan Mark Of This Content
Conclusion
So This is all About This Tutorial. Hope This Tutorial Helped You. Thank You.
Post Views: 1
У меня установлен webpack-cli в моем проекте laravel. Я не знаю, зачем в первую очередь нам это нужно для запуска моего приложения vue, но это вызывает ошибку:
Когда я запускаю npm run dev или npm run hot
[webpack-cli] Error: Cannot find module 'webpack/lib/rules/DescriptionDataMatcherRulePlugin'
Require stack:
- C:UsersVirussDesktoptest-meme-librarymeme-librarynode_modulesvue-loaderlibplugin-webpack5.js
- C:UsersVirussDesktoptest-meme-librarymeme-librarynode_modulesvue-loaderlibplugin.js
- C:UsersVirussDesktoptest-meme-librarymeme-librarynode_modulesvue-loaderlibindex.js
- C:UsersVirussDesktoptest-meme-librarymeme-librarynode_moduleslaravel-mixsrccomponentsVue.js
- C:UsersVirussDesktoptest-meme-librarymeme-librarynode_moduleslaravel-mixsrccomponentsComponentRegistrar.js
- C:UsersVirussDesktoptest-meme-librarymeme-librarynode_moduleslaravel-mixsrcMix.js
- C:UsersVirussDesktoptest-meme-librarymeme-librarynode_moduleslaravel-mixsetupwebpack.config.js
- C:UsersVirussDesktoptest-meme-librarymeme-librarynode_moduleswebpack-clilibwebpack-cli.js
- C:UsersVirussDesktoptest-meme-librarymeme-librarynode_moduleswebpack-clilibbootstrap.js
- C:UsersVirussDesktoptest-meme-librarymeme-librarynode_moduleswebpack-clibincli.js
- C:UsersVirussDesktoptest-meme-librarymeme-librarynode_moduleswebpackbinwebpack.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
at Function.Module._load (internal/modules/cjs/loader.js:746:27)
at Module.require (internal/modules/cjs/loader.js:974:19)
at require (internal/modules/cjs/helpers.js:93:18)
at Object.<anonymous> (C:UsersVirussDesktoptest-meme-librarymeme-librarynode_modulesvue-loaderlibplugin-webpack5.js:6:42)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:12)
at Module.require (internal/modules/cjs/loader.js:974:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\Users\Viruss\Desktop\test-meme-library\meme-library\node_modules\vue-loader\lib\plugin-webpack5.js',
'C:\Users\Viruss\Desktop\test-meme-library\meme-library\node_modules\vue-loader\lib\plugin.js',
'C:\Users\Viruss\Desktop\test-meme-library\meme-library\node_modules\vue-loader\lib\index.js',
'C:\Users\Viruss\Desktop\test-meme-library\meme-library\node_modules\laravel-mix\src\components\Vue.js',
'C:\Users\Viruss\Desktop\test-meme-library\meme-library\node_modules\laravel-mix\src\components\ComponentRegistrar.js',
'C:\Users\Viruss\Desktop\test-meme-library\meme-library\node_modules\laravel-mix\src\Mix.js',
'C:\Users\Viruss\Desktop\test-meme-library\meme-library\node_modules\laravel-mix\setup\webpack.config.js',
'C:\Users\Viruss\Desktop\test-meme-library\meme-library\node_modules\webpack-cli\lib\webpack-cli.js',
'C:\Users\Viruss\Desktop\test-meme-library\meme-library\node_modules\webpack-cli\lib\bootstrap.js',
'C:\Users\Viruss\Desktop\test-meme-library\meme-library\node_modules\webpack-cli\bin\cli.js',
'C:\Users\Viruss\Desktop\test-meme-library\meme-library\node_modules\webpack\bin\webpack.js'
]
}
Vue установлен также vue-loader, не могу понять, почему он не может найти эти файлы. Кроме того, я посмотрел на node_modules, все там есть …
5 ответов
Лучший ответ
Вам нужно обновить свой vue-loader
npm update vue-loader
И если он не установлен, установите его
npm i vue-loader
205
Ali Sharifi Neyestani
20 Дек 2021 в 12:04
Laravel по умолчанию добавил версию Vue-loader 15.9.7
. Мне нужно вручную обновить vue-loader:^15.9.8
в пакете JSON, чтобы устранить ошибку.
Затем выполните yarn
и yarn dev
или npm install
и npm run dev
12
LogGurkha
11 Янв 2022 в 08:47
У меня была эта ошибка в моем проекте. После поиска я обнаружил, что мне нужно обновить загрузчик Vue. А если он не установлен, установите его здесь. Поэтому я добавляю эту строку в свой терминал в своем проекте.
npm install -D vue-loader vue-template-compiler
7
Karl Hill
29 Апр 2022 в 22:57
Бег
npm update vue-loader
Должен работать нормально, если пакет vue-loader уже установлен.
4
Peter Csala
26 Фев 2022 в 12:58
Некоторые из этих обновлений являются основными выпусками. Запуск npm update не обновит их версию. Основные выпуски никогда не обновляются таким образом, потому что они (по определению) вносят критические изменения, а npm хочет избавить вас от проблем.
Иногда пакеты npm не устанавливаются должным образом, я использовал следующий метод для решения этой проблемы:
**
- Удалите папку модулей узлов из вашего проекта.
- Выполните следующие команды
- npm install -g npm-check-updates
- нку-у
- установка/обновление npm.**
1
swapnil shingare
18 Апр 2022 в 11:26