构建报错
ERROR in ./node_modules/extract-text-webpack-plugin/dist/loader.js?{"omit":1,"remove":true}!./node_modules/vue-style-loader!./node_modules/css-loader?{"sourceMap":true}!./node_modules/vue-loader/lib/style-compiler?{"vue":true,"id":"data-v-c746bafe","scoped":true,"hasInlineConfig":false}!./node_modules/sass-loader/dist/cjs.js?{"sourceMap":true}!./node_modules/vue-loader/lib/selector.js?type=styles&index=0!./src/components/content/index.vue
Module build failed: ModuleBuildError: Module build failed: TypeError: this.getResolve is not a function
at Object.loader (/usr/local/nginx/html/unique/node_modules/sass-loader/dist/index.js:52:26)
at runLoaders (/usr/local/nginx/html/unique/node_modules/webpack/lib/NormalModule.js:195:19)
at /usr/local/nginx/html/unique/node_modules/loader-runner/lib/LoaderRunner.js:367:11
at /usr/local/nginx/html/unique/node_modules/loader-runner/lib/LoaderRunner.js:233:18
at runSyncOrAsync (/usr/local/nginx/html/unique/node_modules/loader-runner/lib/LoaderRunner.js:143:3)
at iterateNormalLoaders (/usr/local/nginx/html/unique/node_modules/loader-runner/lib/LoaderRunner.js:232:2)
at iterateNormalLoaders (/usr/local/nginx/html/unique/node_modules/loader-runner/lib/LoaderRunner.js:221:10)
at /usr/local/nginx/html/unique/node_modules/loader-runner/lib/LoaderRunner.js:236:3
at Object.context.callback (/usr/local/nginx/html/unique/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
at Object.module.exports (/usr/local/nginx/html/unique/node_modules/vue-loader/lib/selector.js:21:8)
@ ./src/components/content/index.vue 2:2-410
@ ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/views/unique/index.vue
@ ./src/views/unique/index.vue
@ ./src/router/index.js
@ ./src/main.js
ERROR in ./node_modules/extract-text-webpack-plugin/dist/loader.js?{"omit":1,"remove":true}!./node_modules/vue-style-loader!./node_modules/css-loader?{"sourceMap":true}!./node_modules/vue-loader/lib/style-compiler?{"vue":true,"id":"data-v-9d69639c","scoped":true,"hasInlineConfig":false}!./node_modules/sass-loader/dist/cjs.js?{"sourceMap":true}!./node_modules/vue-loader/lib/selector.js?type=styles&index=0!./src/views/equal/components/content/index.vue
Module build failed: ModuleBuildError: Module build failed: TypeError: this.getResolve is not a function
at Object.loader (/usr/local/nginx/html/unique/node_modules/sass-loader/dist/index.js:52:26)
at runLoaders (/usr/local/nginx/html/unique/node_modules/webpack/lib/NormalModule.js:195:19)
at /usr/local/nginx/html/unique/node_modules/loader-runner/lib/LoaderRunner.js:367:11
at /usr/local/nginx/html/unique/node_modules/loader-runner/lib/LoaderRunner.js:233:18
at runSyncOrAsync (/usr/local/nginx/html/unique/node_modules/loader-runner/lib/LoaderRunner.js:143:3)
at iterateNormalLoaders (/usr/local/nginx/html/unique/node_modules/loader-runner/lib/LoaderRunner.js:232:2)
at iterateNormalLoaders (/usr/local/nginx/html/unique/node_modules/loader-runner/lib/LoaderRunner.js:221:10)
at /usr/local/nginx/html/unique/node_modules/loader-runner/lib/LoaderRunner.js:236:3
at Object.context.callback (/usr/local/nginx/html/unique/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
at Object.module.exports (/usr/local/nginx/html/unique/node_modules/vue-loader/lib/selector.js:21:8)
@ ./src/views/equal/components/content/index.vue 2:2-428
@ ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/views/equal/index.vue
@ ./src/views/equal/index.vue
@ ./src/router/index.js
@ ./src/main.js
ERROR in ./node_modules/extract-text-webpack-plugin/dist/loader.js?{"omit":1,"remove":true}!./node_modules/vue-style-loader!./node_modules/css-loader?{"sourceMap":true}!./node_modules/vue-loader/lib/style-compiler?{"vue":true,"id":"data-v-9d69639c","scoped":true,"hasInlineConfig":false}!./node_modules/sass-loader/dist/cjs.js?{"sourceMap":true}!./node_modules/vue-loader/lib/selector.js?type=styles&index=0!./src/views/equal/components/content/index.vue
Module build failed: ModuleBuildError: Module build failed: TypeError: this.getResolve is not a function
at Object.loader (/usr/local/nginx/html/unique/node_modules/sass-loader/dist/index.js:52:26)
at runLoaders (/usr/local/nginx/html/unique/node_modules/webpack/lib/NormalModule.js:195:19)
at /usr/local/nginx/html/unique/node_modules/loader-runner/lib/LoaderRunner.js:367:11
at /usr/local/nginx/html/unique/node_modules/loader-runner/lib/LoaderRunner.js:233:18
at runSyncOrAsync (/usr/local/nginx/html/unique/node_modules/loader-runner/lib/LoaderRunner.js:143:3)
at iterateNormalLoaders (/usr/local/nginx/html/unique/node_modules/loader-runner/lib/LoaderRunner.js:232:2)
at iterateNormalLoaders (/usr/local/nginx/html/unique/node_modules/loader-runner/lib/LoaderRunner.js:221:10)
at /usr/local/nginx/html/unique/node_modules/loader-runner/lib/LoaderRunner.js:236:3
at Object.context.callback (/usr/local/nginx/html/unique/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
at Object.module.exports (/usr/local/nginx/html/unique/node_modules/vue-loader/lib/selector.js:21:8)
@ ./node_modules/extract-text-webpack-plugin/dist/loader.js?{"omit":1,"remove":true}!./node_modules/vue-style-loader!./node_modules/css-loader?{"sourceMap":true}!./node_modules/vue-loader/lib/style-compiler?{"vue":true,"id":"data-v-9d69639c","scoped":true,"hasInlineConfig":false}!./node_modules/sass-loader/dist/cjs.js?{"sourceMap":true}!./node_modules/vue-loader/lib/selector.js?type=styles&index=0!./src/views/equal/components/content/index.vue
@ ./src/views/equal/components/content/index.vue
@ ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/views/equal/index.vue
@ ./src/views/equal/index.vue
@ ./src/router/index.js
@ ./src/main.js
ERROR in ./node_modules/extract-text-webpack-plugin/dist/loader.js?{"omit":1,"remove":true}!./node_modules/vue-style-loader!./node_modules/css-loader?{"sourceMap":true}!./node_modules/vue-loader/lib/style-compiler?{"vue":true,"id":"data-v-c746bafe","scoped":true,"hasInlineConfig":false}!./node_modules/sass-loader/dist/cjs.js?{"sourceMap":true}!./node_modules/vue-loader/lib/selector.js?type=styles&index=0!./src/components/content/index.vue
Module build failed: ModuleBuildError: Module build failed: TypeError: this.getResolve is not a function
at Object.loader (/usr/local/nginx/html/unique/node_modules/sass-loader/dist/index.js:52:26)
at runLoaders (/usr/local/nginx/html/unique/node_modules/webpack/lib/NormalModule.js:195:19)
at /usr/local/nginx/html/unique/node_modules/loader-runner/lib/LoaderRunner.js:367:11
at /usr/local/nginx/html/unique/node_modules/loader-runner/lib/LoaderRunner.js:233:18
at runSyncOrAsync (/usr/local/nginx/html/unique/node_modules/loader-runner/lib/LoaderRunner.js:143:3)
at iterateNormalLoaders (/usr/local/nginx/html/unique/node_modules/loader-runner/lib/LoaderRunner.js:232:2)
at iterateNormalLoaders (/usr/local/nginx/html/unique/node_modules/loader-runner/lib/LoaderRunner.js:221:10)
at /usr/local/nginx/html/unique/node_modules/loader-runner/lib/LoaderRunner.js:236:3
at Object.context.callback (/usr/local/nginx/html/unique/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
at Object.module.exports (/usr/local/nginx/html/unique/node_modules/vue-loader/lib/selector.js:21:8)
@ ./node_modules/extract-text-webpack-plugin/dist/loader.js?{"omit":1,"remove":true}!./node_modules/vue-style-loader!./node_modules/css-loader?{"sourceMap":true}!./node_modules/vue-loader/lib/style-compiler?{"vue":true,"id":"data-v-c746bafe","scoped":true,"hasInlineConfig":false}!./node_modules/sass-loader/dist/cjs.js?{"sourceMap":true}!./node_modules/vue-loader/lib/selector.js?type=styles&index=0!./src/components/content/index.vue
@ ./src/components/content/index.vue
@ ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/views/unique/index.vue
@ ./src/views/unique/index.vue
@ ./src/router/index.js
@ ./src/main.js
解决方法:
错误原因:sass-loader版本过高导致编译错误
将sass-loader版本调至7.3.1
npm uninstall sass-loader
npm install sass-loader@7.3.1 --save-dev