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