Привет всем, я застрял в моей проблеме, пожалуйста, помогите мне в моей ошибке
я использую узел 8
и вот мой пакет. json
"scripts": {
"dev": "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",
"watch": "npm run development -- --watch",
"watch-poll": "npm run watch -- --watch-poll",
"hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
"prod": "npm run production",
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
},
"devDependencies": {
"autoprefixer": "^9.1.3",
"axios": "^0.18",
"babel-preset-env": "^1.7.0",
"bootstrap": "^4.0.0",
"cross-env": "^5.1",
"easygettext": "^2.6.4",
"es6-promise": "^4.2.4",
"exports-loader": "^0.7.0",
"jquery": "^3.2",
"laravel-mix": "^2.0",
"lodash": "^4.17.10",
"popper.js": "^1.12",
"vee-validate": "^2.1.0-beta.8",
"vue-fragment": "^1.1.0",
"webpack-bundle-analyzer": "^3.0.3"
},
"dependencies": {
"@sentry/browser": "^5.3.0",
"@sentry/integrations": "^5.3.1",
"babel-plugin-syntax-dynamic-import": "^6.18.0",
"babel-polyfill": "^6.26.0",
"detect-browser": "^3.0.1",
"flag-icon-css": "^3.2.0",
"fuse.js": "^3.2.1",
"innersvg-polyfill": "^0.0.2",
"intl-tel-input": "^14.0.3",
"monet": "^0.9.0",
"perfect-scrollbar": "^1.4.0",
"portal-vue": "^1.5.1",
"pretty-checkbox-vue": "^1.1.9",
"raw-loader": "^0.5.1",
"shortid": "^2.2.14",
"smoothscroll-polyfill": "^0.4.3",
"throttle-debounce": "^2.0.1",
"vue": "^2.5.17",
"vue-gettext": "^2.1.0",
"vue-js-modal": "^1.3.26",
"vue-match-heights": "^0.1.1",
"vue-router": "^3.0.1",
"vue-tel-input": "^2.0.8",
"vuex": "^3.0.1",
"vuex-map-fields": "^1.3.1",
"vuex-router-sync": "^5.0.0"
},
затем я набираю npm install, затем пряжу dev
, и я получил ошибку
ОШИБКА в ./node_modules/css-loader??ref--5-2! ./node_modules/postcss-loader/lib??postcss!./node_modules/sass-loader/lib/loader.js??ref--5-4!./resources/assets/sass /app.scss Сборка модуля завершилась неудачно: @import '~ flag-icon-css / sass / flag-icon-more'; ^ Файл для импорта не найден или не читается: ~ flag-icon-css / sass / flag-icon-more. в /Users/polt/web/smartchart/portal-login/resources/assets/sass/components/_flags.scss (строка 5, столбец 1) @ ./resources/assets/sass/app.scss 4: 14-206 @ multi ./resources/assets/js/app.js ./resources/assets/sass/app.scss ./resources/assets/sass/widgets.scss
ERROR in ./resources/assets/sass/app.scss
Module build failed: ModuleBuildError: Module build failed:
@import '~flag-icon-css/sass/flag-icon-more';
^
File to import not found or unreadable: ~flag-icon-css/sass/flag-icon-more.
in /Users/polt/web/smartchart/portal-login/resources/assets/sass/components/_flags.scss (line 5, column 1)
at runLoaders (/Users/polt/web/smartchart/portal-login/node_modules/webpack/lib/NormalModule.js:195:19)
at /Users/polt/web/smartchart/portal-login/node_modules/loader-runner/lib/LoaderRunner.js:367:11
at /Users/polt/web/smartchart/portal-login/node_modules/loader-runner/lib/LoaderRunner.js:233:18
at context.callback (/Users/polt/web/smartchart/portal-login/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
at Object.asyncSassJobQueue.push [as callback] (/Users/polt/web/smartchart/portal-login/node_modules/sass-loader/lib/loader.js:55:13)
at Object.done [as callback] (/Users/polt/web/smartchart/portal-login/node_modules/neo-async/async.js:8067:18)
at options.error (/Users/polt/web/smartchart/portal-login/node_modules/node-sass/lib/index.js:294:32)
@ ./resources/assets/sass/app.scss
@ multi ./resources/assets/js/app.js ./resources/assets/sass/app.scss ./resources/assets/sass/widgets.scss
ERROR in ./resources/assets/sass/widgets.scss
Module build failed: ModuleBuildError: Module build failed: TypeError: Cannot read property 'indexOf' of undefined
at Selector.check (/Users/polt/web/smartchart/portal-login/node_modules/laravel-mix/node_modules/autoprefixer/lib/selector.js:34:27)
at Selector.process (/Users/polt/web/smartchart/portal-login/node_modules/laravel-mix/node_modules/autoprefixer/lib/prefixer.js:143:19)
at /Users/polt/web/smartchart/portal-login/node_modules/laravel-mix/node_modules/autoprefixer/lib/processor.js:60:33
at Array.map (<anonymous>)
at /Users/polt/web/smartchart/portal-login/node_modules/laravel-mix/node_modules/autoprefixer/lib/processor.js:59:49
at /Users/polt/web/smartchart/portal-login/node_modules/postcss-loader/node_modules/postcss/lib/container.js:237:28
at /Users/polt/web/smartchart/portal-login/node_modules/postcss-loader/node_modules/postcss/lib/container.js:144:26
at Root.each (/Users/polt/web/smartchart/portal-login/node_modules/postcss-loader/node_modules/postcss/lib/container.js:110:22)
at Root.walk (/Users/polt/web/smartchart/portal-login/node_modules/postcss-loader/node_modules/postcss/lib/container.js:143:21)
at Root.walkRules (/Users/polt/web/smartchart/portal-login/node_modules/postcss-loader/node_modules/postcss/lib/container.js:235:25)
at Processor.add (/Users/polt/web/smartchart/portal-login/node_modules/laravel-mix/node_modules/autoprefixer/lib/processor.js:56:13)
at plugin (/Users/polt/web/smartchart/portal-login/node_modules/laravel-mix/node_modules/autoprefixer/lib/autoprefixer.js:90:32)
at LazyResult.run (/Users/polt/web/smartchart/portal-login/node_modules/postcss-loader/node_modules/postcss/lib/lazy-result.js:277:20)
at LazyResult.asyncTick (/Users/polt/web/smartchart/portal-login/node_modules/postcss-loader/node_modules/postcss/lib/lazy-result.js:192:32)
at LazyResult.asyncTick (/Users/polt/web/smartchart/portal-login/node_modules/postcss-loader/node_modules/postcss/lib/lazy-result.js:204:22)
at LazyResult.asyncTick (/Users/polt/web/smartchart/portal-login/node_modules/postcss-loader/node_modules/postcss/lib/lazy-result.js:204:22)
at processing.Promise.then._this2.processed (/Users/polt/web/smartchart/portal-login/node_modules/postcss-loader/node_modules/postcss/lib/lazy-result.js:231:20)
at new Promise (<anonymous>)
at LazyResult.async (/Users/polt/web/smartchart/portal-login/node_modules/postcss-loader/node_modules/postcss/lib/lazy-result.js:228:27)
at LazyResult.then (/Users/polt/web/smartchart/portal-login/node_modules/postcss-loader/node_modules/postcss/lib/lazy-result.js:134:21)
at Promise.resolve.then.then (/Users/polt/web/smartchart/portal-login/node_modules/postcss-loader/lib/index.js:145:8)
at <anonymous>
at runLoaders (/Users/polt/web/smartchart/portal-login/node_modules/webpack/lib/NormalModule.js:195:19)
at /Users/polt/web/smartchart/portal-login/node_modules/loader-runner/lib/LoaderRunner.js:367:11
at /Users/polt/web/smartchart/portal-login/node_modules/loader-runner/lib/LoaderRunner.js:233:18
at context.callback (/Users/polt/web/smartchart/portal-login/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
at Promise.resolve.then.then.catch (/Users/polt/web/smartchart/portal-login/node_modules/postcss-loader/lib/index.js:194:71)
at <anonymous>
@ ./resources/assets/sass/widgets.scss
@ multi ./resources/assets/js/app.js ./resources/assets/sass/app.scss ./resources/assets/sass/widgets.scss
ERROR in ./node_modules/css-loader??ref--6-2!./node_modules/postcss-loader/lib??postcss!./node_modules/sass-loader/lib/loader.js??ref--6-4!./resources/assets/sass/widgets.scss
Module build failed: TypeError: Cannot read property 'indexOf' of undefined
at Selector.check (/Users/polt/web/smartchart/portal-login/node_modules/laravel-mix/node_modules/autoprefixer/lib/selector.js:34:27)
at Selector.process (/Users/polt/web/smartchart/portal-login/node_modules/laravel-mix/node_modules/autoprefixer/lib/prefixer.js:143:19)
at /Users/polt/web/smartchart/portal-login/node_modules/laravel-mix/node_modules/autoprefixer/lib/processor.js:60:33
at Array.map (<anonymous>)
at /Users/polt/web/smartchart/portal-login/node_modules/laravel-mix/node_modules/autoprefixer/lib/processor.js:59:49
at /Users/polt/web/smartchart/portal-login/node_modules/postcss-loader/node_modules/postcss/lib/container.js:237:28
at /Users/polt/web/smartchart/portal-login/node_modules/postcss-loader/node_modules/postcss/lib/container.js:144:26
at Root.each (/Users/polt/web/smartchart/portal-login/node_modules/postcss-loader/node_modules/postcss/lib/container.js:110:22)
at Root.walk (/Users/polt/web/smartchart/portal-login/node_modules/postcss-loader/node_modules/postcss/lib/container.js:143:21)
at Root.walkRules (/Users/polt/web/smartchart/portal-login/node_modules/postcss-loader/node_modules/postcss/lib/container.js:235:25)
at Processor.add (/Users/polt/web/smartchart/portal-login/node_modules/laravel-mix/node_modules/autoprefixer/lib/processor.js:56:13)
at plugin (/Users/polt/web/smartchart/portal-login/node_modules/laravel-mix/node_modules/autoprefixer/lib/autoprefixer.js:90:32)
at LazyResult.run (/Users/polt/web/smartchart/portal-login/node_modules/postcss-loader/node_modules/postcss/lib/lazy-result.js:277:20)
at LazyResult.asyncTick (/Users/polt/web/smartchart/portal-login/node_modules/postcss-loader/node_modules/postcss/lib/lazy-result.js:192:32)
at LazyResult.asyncTick (/Users/polt/web/smartchart/portal-login/node_modules/postcss-loader/node_modules/postcss/lib/lazy-result.js:204:22)
at LazyResult.asyncTick (/Users/polt/web/smartchart/portal-login/node_modules/postcss-loader/node_modules/postcss/lib/lazy-result.js:204:22)
at processing.Promise.then._this2.processed (/Users/polt/web/smartchart/portal-login/node_modules/postcss-loader/node_modules/postcss/lib/lazy-result.js:231:20)
at new Promise (<anonymous>)
at LazyResult.async (/Users/polt/web/smartchart/portal-login/node_modules/postcss-loader/node_modules/postcss/lib/lazy-result.js:228:27)
at LazyResult.then (/Users/polt/web/smartchart/portal-login/node_modules/postcss-loader/node_modules/postcss/lib/lazy-result.js:134:21)
at Promise.resolve.then.then (/Users/polt/web/smartchart/portal-login/node_modules/postcss-loader/lib/index.js:145:8)
at <anonymous>
@ ./resources/assets/sass/widgets.scss 4:14-210
@ multi ./resources/assets/js/app.js ./resources/assets/sass/app.scss ./resources/assets/sass/widgets.scs
Пожалуйста, помогите мне решить мою проблему, спасибо заранее