请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

正在回答 回答被采纳积分+3

3回答

Dell 2020-11-07 15:33:26

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

0 回复 有任何疑惑可以回复我~
提问者 qq_蓝骏毅_04076633 2020-11-06 15:52:35

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 回复 有任何疑惑可以回复我~
提问者 qq_蓝骏毅_04076633 2020-11-06 15:46:47

 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 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号