Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

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.


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

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


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(