简体   繁体   English

更新 angular-devkit 并失败:Microsoft.AspNetCore.SpaServices[0]

[英]Update angular-devkit and got fail: Microsoft.AspNetCore.SpaServices[0]

in my Angular 8 +.net core 2.2 I've upgraded from Angular 8.2.1 to 8.2.7 after that I see in console windows that messages:在我的 Angular 8 +.net core 2.2 中,我从 Angular 8.2.1 升级到 8.2.7 之后,我在控制台 Z0F4137ED1502B5045D6083AA258B5C24 中看到消息:

fail: Microsoft.AspNetCore.SpaServices[0]
      <s> [webpack.Progress] 10% building 1/1 modules 0 active
.......................
fail: Microsoft.AspNetCore.SpaServices[0]
      <s> [webpack.Progress] 98% after emitting

fail: Microsoft.AspNetCore.SpaServices[0]
      <s> [webpack.Progress] 98% after emitting CopyPlugin

fail: Microsoft.AspNetCore.SpaServices[0]
      <s> [webpack.Progress] 98% after emitting angular-compiler

fail: Microsoft.AspNetCore.SpaServices[0]
      <s> [webpack.Progress] 98% after emitting SizeLimitsPlugin

fail: Microsoft.AspNetCore.SpaServices[0]
      <s> [webpack.Progress] 100%

info: Microsoft.AspNetCore.SpaServices[0]
      chunk {main} main.js, main.js.map (main) 451 kB [initial] [rendered]
chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 287 kB [initial] [rendered]
chunk {polyfills-es5} polyfills-es5.js, polyfills-es5.js.map (polyfills-es5) 624 kB [initial] [rendered]
chunk {runtime} runtime.js, runtime.js.map (runtime) 6.15 kB [entry] [rendered]
chunk {styles} styles.js, styles.js.map (styles) 1.38 MB [initial] [rendered]
chunk {vendor} vendor.js, vendor.js.map (vendor) 6.49 MB [initial] [rendered]
Date: 2019-09-24T05:37:30.303Z - Hash: 688e97dd7591eb779072 - Time: 19723ms

info: Microsoft.AspNetCore.SpaServices[0]
      ** Angular Live Development Server is listening on localhost:2073, open your browser on http://localhost:2073/ **

info: Microsoft.AspNetCore.SpaServices[0]
      i 「wdm」: Compiled successfully.

seems the application is compiled and working and I found that angular-devkit is the probleme,if I revert to previous version all works fine:似乎应用程序已编译并正在运行,我发现 angular-devkit 是问题,如果我恢复到以前的版本一切正常:

"@angular-devkit/build-angular": "^0.803.5",

revert to恢复

"@angular-devkit/build-angular": "0.802.1",

is there any fix for using the latest version?使用最新版本有什么解决办法吗?

I have the same problem like your when using我在使用时遇到了和你一样的问题

"@angular-devkit/build-angular": "~0.803.3"

I always see fail log if the build is not success.如果构建不成功,我总是会看到失败日志。 After angular cli compile success everything will be fine angular cli编译成功后一切都会好的

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 当我更新“@angular-devkit/build-angular”时,style-loader 停止工作 - style-loader stop working when I update "@angular-devkit/build-angular" 找不到模块“@angular-devkit/core” - Cannot find module '@angular-devkit/core' 找不到模块“@angular-devkit/schematics/tasks” - Cannot find module '@angular-devkit/schematics/tasks' Angular TSLint - 找不到构建器“@angular-devkit/build-angular:tslint” - Angular TSLint - Cannot find builder "@angular-devkit/build-angular:tslint" 发生未处理的异常:找不到模块“@angular-devkit/build-angular” - An unhandled exception occurred: Could not find module "@angular-devkit/build-angular" npm WARN @angular-devkit/build-angular@14.0.6 需要对等 xxxx 但没有安装 - npm WARN @angular-devkit/build-angular@14.0.6 requires a peer xxxx but none is installed 离子服务后找不到模块(webpack)/hot/emitter @angular-devkit/build-angular - Ionic 4 - Module not found (webpack)/hot/emitter @angular-devkit/build-angular after ionic serve - Ionic 4 错误:模块构建失败(来自./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js): - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js): 无法从“F:\\\\Angular Projects\\\\cmp-databinding-start”中找到模块“@angular-devkit/build-angular” - Could not find module "@angular-devkit/build-angular" from "F:\\Angular Projects\\cmp-databinding-start" ./src/main.ts - 错误:模块构建失败(来自./node_modules/@angular-devkit/build-angular/node_modules/@ngtools/webpack/src/ivy/index.js): - ./src/main.ts - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/node_modules/@ngtools/webpack/src/ivy/index.js):
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM