[英]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.