I have updated angular from 8 to 9.0.4 I get the the error TS2304: Cannot find name 'abp'. when running the ng build or npm start
My package json has - "abp-ng2-module": "^5.1.1", "abp-web-resources": "^5.2.0",
Please find below some sample errors
~~~
src/app/admin/audit-logs/audit-logs.component.ts:157:16 - error TS2304: Cannot find name 'abp'. return abp.utils.truncateStringWithPostfix(text, length); ~~~ src/app/admin/dashboard/host-dashboard.component.ts:142:21 - error TS2304: Cannot find name 'abp'. window.open(abp.appPath + 'app/admin/tenants?' + ~~~ src/app/admin/dashboard/host-dashboard.component.ts:147:21 - error TS2304: Cannot find name 'abp'. const url = abp.appPath +
1 Answer(s)
-
0
zero has not been tested in angular 9.
You can discuss it in Milestone 8.4. https://github.com/aspnetzero/aspnet-zero-core/issues/2978
https://github.com/aspnetboilerplate/aspnetboilerplate/issues/5272#issuecomment-583874813