aloyoun 1 گزارش دادن ارسال شده در شهریور 99 سلام وقت بخیر هنگام اجرا npm run dev ارور دریافت میکنم npm run dev > @ dev C:\wamp\www\laraveldl2 > npm run development > @ development C:\wamp\www\laraveldl2 > cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js 98% after emitting SizeLimitsPlugin DONE Compiled successfully in 95ms 15:35:43 (node:13568) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open 'C:\wamp\www\laraveldl2\resources\css\style.css' (node:13568) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) مشکل از کجاست و چجوری میتونم رفعش کنم ؟ با تشکر نقل قول Share this post Link to post Share on other sites
aloyoun 1 گزارش دادن ارسال شده در شهریور 99 البته با توجه به اینکه محتوا فایل webpack.mix.js هم نیاز هست ... تقدیم شما . 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.styles([ 'resources/css/lib/bootstrap/css/bootstrap.min.css', 'resources/css/lib/animate/animate.min.css', 'resources/css/lib/ionicons/css/ionicons.min.css', 'resources/css/lib/owlcarousel/assets/owl.carousel.min.css', 'resources/css/lib/lightbox/css/lightbox.min.css', 'resources/css/style.css', ], 'public/front/css/app.css'); mix.scripts([ 'resources/js/lib/jquery/jquery.min.js', 'resources/js/lib/jquery/jquery-migrate.min.js', 'resources/js/lib/bootstrap/js/bootstrap.bundle.min.js', 'resources/js/lib/easing/easing.min.js', 'resources/js/lib/mobile-nav/mobile-nav.js', 'resources/js/lib/wow/wow.min.js', 'resources/js/lib/waypoints/waypoints.min.js', 'resources/js/lib/counterup/counterup.min.js', 'resources/js/lib/owlcarousel/owl.carousel.min.js', 'resources/js/lib/isotope/isotope.pkgd.min.js', 'resources/js/lib/lightbox/js/lightbox.min.js', 'resources/js/contactform/contactform.js', 'resources/js/main.js', ], 'public/front/js/app.js'); نقل قول Share this post Link to post Share on other sites
aloyoun 1 گزارش دادن ارسال شده در شهریور 99 تشکر مشکل حل شد آدرس فایل : resources/js/main.js و public/front/css/app.css اشتباه درج شده بود . آدرس صحیح : resources/js/js/main.js و public/front/css/css/app.css بود . 1 نقل قول Share this post Link to post Share on other sites