美文网首页
vue打包出错

vue打包出错

作者: 黑白说程序 | 来源:发表于2020-09-21 17:05 被阅读0次

vue安装css-loader和style-loader时会打包出错,这主要是css-loader和style-loader版本过高的原因 

(node:69828) UnhandledPromiseRejectionWarning: TypeError: this.getResolve is not a function

(node:69828) UnhandledPromiseRejectionWarning: TypeError: this.getResolve is not a function

    at Object.loader (C:\wamp64\www\studywebpack\node_modules\css-loader\dist\index.js:62:27)

    at LOADER_EXECUTION (C:\wamp64\www\studywebpack\node_modules\loader-runner\lib\LoaderRunner.js:119:14)

    at runSyncOrAsync (C:\wamp64\www\studywebpack\node_modules\loader-runner\lib\LoaderRunner.js:120:4)

    at iterateNormalLoaders (C:\wamp64\www\studywebpack\node_modules\loader-runner\lib\LoaderRunner.js:232:2)

    at Array.<anonymous> (C:\wamp64\www\studywebpack\node_modules\loader-runner\lib\LoaderRunner.js:205:4)

    at Storage.finished (C:\wamp64\www\studywebpack\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:40:15)

    at C:\wamp64\www\studywebpack\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:77:9

    at C:\wamp64\www\studywebpack\node_modules\graceful-fs\graceful-fs.js:123:16

    at FSReqCallback.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:63:3)

(node:69828) 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: 1)

(node:69828) [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.

相关文章

  • vue打包出错

    vue安装css-loader和style-loader时会打包出错,这主要是css-loader和style-l...

  • 使用Vue+Webpack打包图片时出现src为"[object

    目录 出错现象 出错原因 解决方案 出错现象 这个错误是我在用vue-cli中使用webpack打包的时候,页面内...

  • ERROR in multi (webpack)-dev-ser

    目录 出错现象 报错信息 出错原因 解决方案 出错现象 这个错误是我在用vue-cli中使用webpack打包的时...

  • vue打包后文件路径出错

    打包后发现路径404,还有种可能就是路径出错, 解决方法: 第一步:解决文件路劲问题,assetsPublicPa...

  • 打包出错

    在混淆里面添加忽略警告即可: #忽略警告 -ignorewarnings

  • 去掉Vue cli4打包后出现.map文件

    Vue官方脚手架工具在打包的时候默认会生成.map文件。用于出错时报告详细错误,但生产环境是没必要的。所以生产环境...

  • Vue --Nuxt打包问题(页内less报错)

    如图:页内less打包时出错

  • 2019-05-10

    vue 组件按需引用,vue-router懒加载,vue打包优化,加载动画 当打包构建应用时,Javascript...

  • 打包ipa出错

    本来之前APP打包啊,上线都很正常,但是不知道为什么后面打包就一直报这和错误 后面谷歌各种解决方法,但是就是不行,...

  • iOS打包出错

    duplicate symbols for architecture x86_64的几种解决方案 yarn rem...

网友评论

      本文标题:vue打包出错

      本文链接:https://www.haomeiwen.com/subject/szovyktx.html