vue打包出错

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. (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打包出错)