TypeError: Cannot read property ‘tapAsync‘ of undefined

Failed to compile with 1 error                                        12:31:53
 
  TypeError: Cannot read property 'tapAsync' of undefined
 
  - ExternalModuleFactoryPlugin.js:58 ExternalModuleFactoryPlugin.apply
    [15366]/[webpack]/lib/ExternalModuleFactoryPlugin.js:58:39
 
  - ExternalsPlugin.js:30
    [15366]/[webpack]/lib/ExternalsPlugin.js:30:63
 
 
  - Hook.js:154 SyncHook.lazyCompileHook
    [vue-admin-template-master]/[cli-service]/[tapable]/lib/Hook.js:154:20
 
  - Compiler.js:665
    [vue-admin-template-master]/[cli-service]/[webpack]/lib/Compiler.js:665:23        
 
 
  - Hook.js:154 AsyncSeriesHook.lazyCompileHook
    [vue-admin-template-master]/[cli-service]/[tapable]/lib/Hook.js:154:20
 
  - Compiler.js:662 Compiler.compile
    [vue-admin-template-master]/[cli-service]/[webpack]/lib/Compiler.js:662:28        
 
  - Compiler.js:328 Compiler.runAsChild
    [vue-admin-template-master]/[cli-service]/[webpack]/lib/Compiler.js:328:8
 
  - compiler.js:75
    [vue-admin-template-master]/[html-webpack-plugin]/lib/compiler.js:75:19
 
  - new Promise
 
  - compiler.js:74 Object.compileTemplate
    [vue-admin-template-master]/[html-webpack-plugin]/lib/compiler.js:74:10
 
  - index.js:71
    [vue-admin-template-master]/[html-webpack-plugin]/index.js:71:42
 
 
  - Hook.js:154 AsyncParallelHook.lazyCompileHook
    [vue-admin-template-master]/[cli-service]/[tapable]/lib/Hook.js:154:20
 
  - Compiler.js:669
    [vue-admin-template-master]/[cli-service]/[webpack]/lib/Compiler.js:669:20        

TypeError: Cannot read property ‘tapAsync‘ of undefined_第1张图片
就是webpack的问题

npm install webpack@4

然后再运行项目,
不行就下个yarn试试

你可能感兴趣的:(日常,javascript,前端,vue.js)