简体   繁体   English

更新到 Angular 8:“未捕获的错误:无法解析 ScrollbarHelper 的所有参数”

[英]Updating to Angular 8: "Uncaught Error: Can't resolve all parameters for ScrollbarHelper"

My code base is not that old, it was written with version 7 of Angular.我的代码库不是那么旧,它是用 Angular 7 版本编写的。

When I run当我跑

ng update @angular/cli @angular/core ng 更新 @angular/cli @angular/core

all that happens is updated library references, changes to some routes, a couple of ViewChild changes, and a file called browserslist is moved.所发生的只是更新库引用、更改某些路由、一些 ViewChild 更改以及移动名为 browserslist 的文件。 I ran right through an upgrading list and got this error, so I started again and just ran this command and it immediately gives this error.我直接浏览了升级列表并得到了这个错误,所以我再次启动并运行了这个命令,它立即给出了这个错误。

I have no ScrollbarHelper in my code.我的代码中没有 ScrollbarHelper。 I've googled and found three posts, none very helpful.我用谷歌搜索并找到了三个帖子,没有一个很有帮助。 A vanilla version 7 project that is updated runs just fine.更新后的 vanilla 版本 7 项目运行良好。 My next step will be to import my existing code a bit at a time to find out which bit causes this error to occur.我的下一步将是一次导入我现有的代码,以找出导致此错误发生的位。

在 Angular 8 中,我将 package.json 中的依赖项更改为 "@swimlane/ngx-datatable": "^15.0.0" 然后运行 ​​npm install。

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

相关问题 角度未捕获错误:无法解析所有服务参数 - Angular Uncaught Error: Can't resolve all parameters for service Angular 7 + Webpack:未捕获的错误:无法解析 e: (?) - Angular 7 + Webpack: Uncaught Error: Can't resolve all parameters for e: (?) 未捕获的错误:无法解析AppComponent中的所有参数:(?) - Uncaught Error: Can't resolve all parameters for AppComponent: (?) in angular 角度-未捕获的错误:无法解析HomeComponent的所有参数:(?,?,?,?) - Angular - Uncaught Error: Can't resolve all parameters for HomeComponent: (?, ?, ?, ?) 未捕获的错误:无法解析 EventsComponent (Angular) 的所有参数 - Uncaught Error: Can't resolve all parameters for EventsComponent (Angular) Angular6:未捕获的错误:无法解析HttpService的所有参数:(?) - Angular6: Uncaught Error: Can't resolve all parameters for HttpService: (?) Angular 未捕获的错误:无法解析所有参数 - Angular Uncaught Error: Can't resolve all parameters for Angular 未捕获的错误:无法解析 ErrorInterceptor 的所有参数 - Angular Uncaught Error: Can't resolve all parameters for ErrorInterceptor 未捕获的错误:无法解析所有参数 - Uncaught Error: Can't resolve all parameters for Angular`useFactory`服务设置抛出未捕获的错误:无法解析组件的所有参数 - Angular `useFactory` Service Setup throwing Uncaught Error: Can't Resolve all parameters for Component
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM