laravel-mix error
I downloaded metronic_laravel_v8.2.5.zip
followed the instructions in https://preview.keenthemes.com/metronic8/laravel/documentation/getting-started/build
It says [webpack-cli][Error: ENOENT: no such file or directory .../metronic_laravel_v8.2.5/starterkit/node_modules/@yaireo/tagify/dist/tagify.min.js etc.
Replies (1)
Hi Bunyamin Mercan
The issue arises because tagify.min.js is no longer available after version 3.19.
You can try to downgrade yaireo/tagify.
npm install @yaireo/tagify@3.19.3 Another solution:
Alternatively, you can modify the path in your resources/mix/plugins.js file to use the non-minified version of the Tagify library.
By making this change, you can continue to use the latest version of @yaireo/tagify (e.g., "^4.22.2") without downgrading.
Open resources/mix/plugins.js. Replace the line:
"node_modules/@yaireo/tagify/dist/tagify.min.js", with:
"node_modules/@yaireo/tagify/dist/tagify.js", Recompile your assets:
npm run dev