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

Laravel npm run dev error


Metronic Version: 8.2.2
OS: Windows 10
PHP: 8.2.10
Node: 20.10.0
NPM: 10.2.3


npm run dev



1 WARNING in child compilations (Use "stats.children: true" resp. "--stats-children" for more details)
webpack compiled with 1 warning


Tried deleting the node_modules folder and running npm install again to reinstall all packages from scratch. Result the same.

When I access the page from a browser, I can see vendor's CSS and JS file not found errors.


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 (2)


Thank you for bringing this to our attention. This warning can be safely ignored, as it does not impact the output assets of your application.

The compiled assets should function as expected. If you encounter any specific issues or need further assistance, please don't hesitate to reach out.


I have also noticed that there is a missing slash "/" in the output directory.

// JS pages (single page use)
(glob.sync(`${dir}/js/custom/**/*.js`) || []).forEach(file => {
    var output = `public/assets${file.replace(path.normalize(dir), '')}`;
    mix.scripts(file, output);
});

should be

var output = `public/assets/${file.replace(path.normalize(dir), '')}`;
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  :(