简体   繁体   English

将 angular 7 更新为 angular 10 后出错 - AspNetBoilerplate

[英]Error after updating angular 7 to angular 10 - AspNetBoilerplate

I've downloaded aspnetboilerplate angular template and upgraded the dependencies in my project according to it.我已经下载了 aspnetboilerplate angular 模板并根据它升级了我的项目中的依赖项。 After resolving compile time errors, I got a runtime error showing in the console window of the browser (screenshot attached)解决编译时错误后,我在浏览器的控制台窗口中显示了一个运行时错误(附上截图)

ERROR TypeError: abp.ajax is not a function
    at Function.push.Kc6q.AppPreBootstrap.getApplicationConfig (AppPreBootstrap.ts:44)
    at Function.push.Kc6q.AppPreBootstrap.run (AppPreBootstrap.ts:34)
    at root.module.ts:35
    at new ZoneAwarePromise (zone.js:913)
    at Array.<anonymous> (root.module.ts:30)
    at ApplicationInitStatus.runInitializers (core.js:26795)
    at core.js:28060
    at _callAndReportToErrorHandler (core.js:28161)
    at core.js:28058
    at ZoneDelegate.invoke (zone.js:386)

在此处输入图片说明

My mistake, I forgot to add the following line in angular.json我的错误,我忘了在 angular.json 中添加以下行


    "scripts":[
    ...
    "./node_modules/abp-web-resources/Abp/Framework/scripts/libs/abp.jquery.min.js"
    ]

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

相关问题 更新到 angular 后 NgxMaterialTimepickerFaceComponent 出错 10 - Error with NgxMaterialTimepickerFaceComponent after updating to angular 10 将 Angular cli 从 8 更新到 10 后出错 - error after updating Angular cli from 8 to 10 未找到导出错误 - 更新到 angular-10 后 - export was not found error - after updating to angular-10 将 angular 9 更新为 10 后超出最大调用堆栈大小错误 - ERROR in Maximum call stack size exceeded after updating angular 9 to 10 在Angular的AspnetBoilerplate中从客户端更新/更改设置 - Updating / Changing settings from client side in AspnetBoilerplate with Angular Aspnetboilerplate角度文件上传 - Aspnetboilerplate Angular File Upload 将 Angular 9 更新到 10 后测试中断 - tests broken after updating Angular 9 to 10 更新到 Angular 10 后找不到命名空间 - Cannot find namespace after updating to Angular 10 Angular karma 更新 angular 9 到 10 后无法捕获浏览器 - Angular karma can't capture browser after updating angular 9 to 10 从 Angular 9 更新到 Angular 10 后出现构建错误:“无法绑定到 &#39;selectedValue&#39; 中的错误,因为它不是 &#39;tbody&#39; 的已知属性” - Build error after updating from Angular 9 to Angular 10: “ERROR in Can't bind to 'selectedValue' since it isn't a known property of 'tbody'”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM