سلام خسته نباشید میخوام میکس انجام بدم این ارورر میاد
98% after emitting SizeLimitsPlugin
ERROR Failed to compile with 1 errors 10:04:00 PM
error in ./node_modules/alpinejs/dist/module.esm.js
Module parse failed: Unexpected token (2016:27)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| return mutateDom(() => {
| if (event instanceof CustomEvent && event.detail !== void 0)
> return event.detail ?? event.target.value;
| else if (el.type === "checkbox") {
| if (Array.isArray(currentValue)) {
@ ./resources/js/app.js 2:0-30 3:16-22 4:0-6
@ multi ./resources/js/app.js ./resources/css/app.css
Asset Size Chunks Chunk Names
/css/app.css 59 bytes /js/app [emitted] /js/app
/js/app.js 597 KiB /js/app [emitted] /js/app
ERROR in ./node_modules/alpinejs/dist/module.esm.js 2016:27
Module parse failed: Unexpected token (2016:27)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| return mutateDom(() => {
| if (event instanceof CustomEvent && event.detail !== void 0)
> return event.detail ?? event.target.value;
| else if (el.type === "checkbox") {
| if (Array.isArray(currentValue)) {
@ ./resources/js/app.js 2:0-30 3:16-22 4:0-6
@ multi ./resources/js/app.js ./resources/css/app.css
error Command failed with exit code 2.
درود خوبی...
لاراول میکس رو در آخرین نسخه ارتقا دهید...
https://github.com/alpinejs/alpine/issues/112
@Raymond سلام دوباره داداش انجام دادم الان این ارورر میده باز
npm run development
> development
> cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
[webpack-cli] Error: Unknown option '--hide-modules'
[webpack-cli] Run 'webpack --help' to see available commands and options
error Command failed with exit code 2.
@Fastrush
توی package.json کد زیر را کپی و پیست کنید:
{
"private": true,
"scripts": {
"dev": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"watch": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"watch-poll": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --watch-poll --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"***": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --*** --config=node_modules/laravel-mix/setup/webpack.config.js",
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
},
"devDependencies": {
"axios": "^0.15.3",
"bootstrap-sass": "^3.3.7",
"cross-env": "^3.2.3",
"jquery": "^3.1.1",
"laravel-mix": "^0.8.1",
"lodash": "^4.17.4",
"vue": "^2.1.10"
}
}
دستور نصب زیر:
npm install --save-dev cross-env
npm install
اجرا آن :
npm run dev
npm run watch
پیوند زیر:
https://github.com/laravel-mix/laravel-mix/issues/478#issuecomment-285043889
https://laracasts.com/discuss/channels/general-discussion/laravel-mix-cross-env-error
آیا مایل به ارسال نوتیفیکیشن و اخبار از طرف راکت هستید ؟