到style就有问题直接关闭

来源:7-1 Vue项目首页 - header区域开发

qq_蓝骏毅_04076633

2020-11-06

写回答

3回答

Dell

2020-11-07

同学,这是stylus-loader的问题,在package.json里面,把stylus-loader的版本改成和我代码一致的版本,然后重新安装依赖,运行代码即可。

0
0

qq_蓝骏毅_04076633

提问者

2020-11-06

r.vue(node:10180) UnhandledPromiseRejectionWarning: TypeError: loaderContext.getResolve is not a function

    at createEvaluator (C:\Users\pc\Desktop\travel\node_modules\stylus-loader\dist\utils.js:271:37)

    at Object.stylusLoader (C:\Users\pc\Desktop\travel\node_modules\stylus-loader\dist\index.js:107:60)

    at LOADER_EXECUTION (C:\Users\pc\Desktop\travel\node_modules\loader-runner\lib\LoaderRunner.js:119:14)

    at runSyncOrAsync (C:\Users\pc\Desktop\travel\node_modules\loader-runner\lib\LoaderRunner.js:120:4)

    at iterateNormalLoaders (C:\Users\pc\Desktop\travel\node_modules\loader-runner\lib\LoaderRunner.js:232:2)

    at iterateNormalLoaders (C:\Users\pc\Desktop\travel\node_modules\loader-runner\lib\LoaderRunner.js:221:10)

    at C:\Users\pc\Desktop\travel\node_modules\loader-runner\lib\LoaderRunner.js:236:3

    at Object.context.callback (C:\Users\pc\Desktop\travel\node_modules\loader-runner\lib\LoaderRunner.js:111:13)

    at Object.module.exports (C:\Users\pc\Desktop\travel\node_modules\vue-loader\lib\selector.js:21:8)

    at LOADER_EXECUTION (C:\Users\pc\Desktop\travel\node_modules\loader-runner\lib\LoaderRunner.js:119:14)

    at runSyncOrAsync (C:\Users\pc\Desktop\travel\node_modules\loader-runner\lib\LoaderRunner.js:120:4)

    at iterateNormalLoaders (C:\Users\pc\Desktop\travel\node_modules\loader-runner\lib\LoaderRunner.js:232:2)

    at C:\Users\pc\Desktop\travel\node_modules\loader-runner\lib\LoaderRunner.js:205:4

    at C:\Users\pc\Desktop\travel\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:70:14

    at processTicksAndRejections (internal/process/task_queues.js:79:11)

(node:10180) 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: 2)

(node:10180) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

 16% building modules 53/56 modules 3 active ...l\src\page\home\components\Heade 16% building modules 54/56 modules 2 active ...l\src\page\home\components\Heade 16% building modules 55/56 modules 1 active ...l\src\page\home\components\Header.vue


0
0

qq_蓝骏毅_04076633

提问者

2020-11-06

 at processTicksAndRejections (internal/process/task_queues.js:79:11)

(node:8912) 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: 2)

(node:8912) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.


0
0

Vue2.5-2.6-3.0开发去哪儿网App 零基础入门到实战

课程紧跟Vue3版本迭代,企业主流版本Vue2+Vue3全掌握

10675 学习 · 8191 问题

查看课程