سلام دوستان هنگام اجرای npm run watch با ارور زیر مواجه میشم:
> @ development C:\xampp\htdocs\arazapp
> cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js "--watch"
10% building 2/2 modules 0 active
webpack is watching the files…
98% after emitting SizeLimitsPlugin
ERROR Failed to compile with 1 errors 19:33:29
This dependency was not found:
C:\xampp\htdocs\arazapp\resources\js\admin.js in multi ./resources/js/admin.js
To install it, you can run: npm install --save C:\xampp\htdocs\arazapp\resources\js\admin.js
Asset Size Chunks Chunk Names
/css/admin.css 186 bytes /js/app [emitted] /js/app
/css/app.css 0 bytes /js/app [emitted] /js/app
/js/admin.js 3.93 KiB /js/admin [emitted] /js/admin
/js/app.js 593 KiB /js/app [emitted] /js/app
ERROR in multi ./resources/js/admin.js
Module not found: Error: Can't resolve 'C:\xampp\htdocs\arazapp\resources\js\admin.js' in 'C:\xampp\htdocs\arazapp'
@ multi ./resources/js/admin.js /js/admin[0]
فایلهای مربوطه:
admin.js
require("/files/jquery.min");
require("/files/bootstrap.min");
require("/files/lumino.glyphs");
require("/files/custom");
require("/files/jquery-3.4.1.min");
کد وبپک:
const mix = require('laravel-mix');
/
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel application. By default, we are compiling the Sass
| file for the application as well as bundling up all the JS files.
|
/
mix.js('resources/js/app.js', 'public/js')
.js('resources/js/admin.js', 'public/js')
.sass('resources/sass/app.scss', 'public/css')
.sass('resources/sass/admin.scss', 'public/css');
تمام فایلهام داخل پوشه view و resources و پوشه filse میباشد ولی کامپایل نمیشن
آیا مایل به ارسال نوتیفیکیشن و اخبار از طرف راکت هستید ؟