Base solution for your next web application
Open Closed

Cannot read property 'toLowerCase', issue while starting the app #7374


User avatar
0
mujthabagroad created

Hello, Getting error wile running the application, there is already one discussion is going on similar to this, tried those steps, but didn't worked. Also tried upgrading to newer version 7.1 to overcome this, but still we are facing the same. Tried downgrading of angular version to 8.0.1 but not able clear the issue.

Unhandled Promise rejection: Cannot read property 'toLowerCase' of undefined ; Zone: <root> ; Task: Promise.then ; Value: TypeError: Cannot read property 'toLowerCase' of undefined    at setLocaleId (core.js:23665)    at core.js:27268    at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (zone.js:391)    at Object.onInvoke (core.js:26769)    at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (zone.js:390)    at Zone.push../node_modules/zone.js/dist/zone.js.Zone.run (zone.js:150)    at NgZone.push../node_modules/@angular/core/fesm5/core.js.NgZone.run (core.js:26683)    at PlatformRef.push../node_modules/@angular/core/fesm5/core.js.PlatformRef.bootstrapModuleFactory (core.js:27259)    at core.js:27302    at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (zone.js:391) TypeError: Cannot read property 'toLowerCase' of undefined    at setLocaleId (http://localhost:4200/vendor.js:71000:26)    at http://localhost:4200/vendor.js:74603:13    at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (http://localhost:4200/polyfills.js:12618:26)    at Object.onInvoke (http://localhost:4200/vendor.js:74104:33)    at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (http://localhost:4200/polyfills.js:12617:52)    at Zone.push../node_modules/zone.js/dist/zone.js.Zone.run (http://localhost:4200/polyfills.js:12377:43)    at NgZone.push../node_modules/@angular/core/fesm5/core.js.NgZone.run (http://localhost:4200/vendor.js:74018:28)    at PlatformRef.push../node_modules/@angular/core/fesm5/core.js.PlatformRef.bootstrapModuleFactory (http://localhost:4200/vendor.js:74594:23)    at http://localhost:4200/vendor.js:74637:59    at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (http://localhost:4200/polyfills.js:12618:26)

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

3 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    You need to downgrade angular to 8.0.0

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    axilla created

    We have the same issue. Downgrading to 8.0.0 didn't help us.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    maliming created
    Support Team

    @axilla Have you seen this post? https://support.aspnetzero.com/QA/Questions/7262

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)