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.
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), '')}`;