Open Closed

Error: "abp is not defined" Angular #10787


0
joe704la created
  • What is your product version? 11.0
  • What is your product type (Angular or MVC)? Angular
  • What is product framework type (.net framework or .net core)? .net 6
  • Which theme are you using? default
  • What are the theme settings? default

I upgraded my project from 10.4 to 11 today and I am getting the below error. It seems to be getting stuck on AppPreBootstrap.ts file in the method getApplicationConfig. It gets to line 83 and errors out on getting the custom headers below. Any idea what could be causing this? My project has multiTenancy off. It is a single tenant project.

let customHeaders = [ { name: abp.multiTenancy.tenantIdCookieName, value: abp.multiTenancy.getTenantIdCookie() + '', },

core.mjs:6469 ERROR ReferenceError: abp is not defined at Function.getApplicationConfig (AppPreBootstrap.ts:83) at Function.run (AppPreBootstrap.ts:24) at root.module.ts:48 at new ZoneAwarePromise (zone.js:1387) at Array.<anonymous> (root.module.ts:42) at ApplicationInitStatus.runInitializers (core.mjs:24714) at core.mjs:26018 at _callAndReportToErrorHandler (core.mjs:26123) at core.mjs:26016 at ZoneDelegate.invoke (zone.js:372) defaultErrorLogger @ core.mjs:6469 handleError @ core.mjs:6516 (anonymous) @ core.mjs:26126 invoke @ zone.js:372 run @ zone.js:134 runOutsideAngular @ core.mjs:25349 (anonymous) @ core.mjs:26126 invoke @ zone.js:372 onInvoke @ core.mjs:25450 invoke @ zone.js:371 run @ zone.js:134 (anonymous) @ zone.js:1276 invokeTask @ zone.js:406 onInvokeTask @ core.mjs:25437 invokeTask @ zone.js:405 runTask @ zone.js:178 drainMicroTaskQueue @ zone.js:582 zone.js:1063 Unhandled Promise rejection: abp is not defined ; Zone: <root> ; Task: Promise.then ; Value: ReferenceError: abp is not defined at Function.getApplicationConfig (AppPreBootstrap.ts:83) at Function.run (AppPreBootstrap.ts:24) at root.module.ts:48 at new ZoneAwarePromise (zone.js:1387) at Array.<anonymous> (root.module.ts:42) at ApplicationInitStatus.runInitializers (core.mjs:24714) at core.mjs:26018 at _callAndReportToErrorHandler (core.mjs:26123) at core.mjs:26016 at ZoneDelegate.invoke (zone.js:372) ReferenceError: abp is not defined at Function.getApplicationConfig (http://localhost:4200/main.js:84:23) at Function.run (http://localhost:4200/main.js:42:25) at http://localhost:4200/main.js:18826:75 at new ZoneAwarePromise (http://localhost:4200/polyfills.js:5759:29) at Array.<anonymous> (http://localhost:4200/main.js:18822:16) at ApplicationInitStatus.runInitializers (http://localhost:4200/vendor.js:137367:52) at http://localhost:4200/vendor.js:138671:28 at _callAndReportToErrorHandler (http://localhost:4200/vendor.js:138776:24) at http://localhost:4200/vendor.js:138669:20 at ZoneDelegate.invoke (http://localhost:4200/polyfills.js:4744:26)


1 Answer(s)
  • 0
    joe704la created

    I figured out the issue. I had some css files listed in the Angular.json file for fullcalendar module and plugins that were messing things up.