I have the following problem following (https://preview.keenthemes.com/metronic8/laravel/documentation/getting-started/build?demo=demo1)
when executing the command 'npm run dev',
it is already mounted in ubuntu
ERROR in ./resources/assets/core/plugins/plugins.scss
Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from ./node_modules/css-loader/dist/cjs.js):
Error: Can't resolve '~@yaireo/tagify/dist/tagify.css' in '/var/www/velymanualidades.com.mx/resources/assets/core/plugins'
at finishWithoutResolve (/var/www/velymanualidades.com.mx/node_modules/enhanced-resolve/lib/Resolver.js:309:18)
at /var/www/velymanualidades.com.mx/node_modules/enhanced-resolve/lib/Resolver.js:386:15
at /var/www/velymanualidades.com.mx/node_modules/enhanced-resolve/lib/Resolver.js:435:5
at eval (eval at create (/var/www/velymanualidades.com.mx/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:16:1)
at /var/www/velymanualidades.com.mx/node_modules/enhanced-resolve/lib/Resolver.js:435:5
at eval (eval at create (/var/www/velymanualidades.com.mx/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:27:1)
at /var/www/velymanualidades.com.mx/node_modules/enhanced-resolve/lib/DescriptionFilePlugin.js:87:43
at /var/www/velymanualidades.com.mx/node_modules/enhanced-resolve/lib/Resolver.js:435:5
at eval (eval at create (/var/www/velymanualidades.com.mx/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)
at /var/www/velymanualidades.com.mx/node_modules/enhanced-resolve/lib/Resolver.js:435:5
at processResult (/var/www/velymanualidades.com.mx/node_modules/webpack/lib/NormalModule.js:758:19)
at /var/www/velymanualidades.com.mx/node_modules/webpack/lib/NormalModule.js:860:5
at /var/www/velymanualidades.com.mx/node_modules/loader-runner/lib/LoaderRunner.js:400:11
at /var/www/velymanualidades.com.mx/node_modules/loader-runner/lib/LoaderRunner.js:252:18
at context.callback (/var/www/velymanualidades.com.mx/node_modules/loader-runner/lib/LoaderRunner.js:124:13)
at Object.loader (/var/www/velymanualidades.com.mx/node_modules/css-loader/dist/index.js:155:5)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
webpack compiled with 2 errors
Hi,
Can you try to remove yarn.lock
and then retry?
Thanks
The issue could be from the 3rd party plugin.
Please try to change tagify in package.json
to
"@yaireo/tagify": "4.16.4",
I keep getting the same error
Hi Jesus,
Could you please try to remove the node_modules folder? Then use yarn to install instead of using npm. Use below commands.
npm i -g yarn
yarn
npm run dev