when trying to login, it pup up the follwed message. It's runing with Angular + dotnetcore.
vendor.js:40419 ERROR Error: Cannot find module './af-ZA.js' at main.js:4208 at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (polyfills.js:7141) at Object.onInvoke (vendor.js:42573) at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (polyfills.js:7140) at Zone.push../node_modules/zone.js/dist/zone.js.Zone.run (polyfills.js:6891) at polyfills.js:7625 at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (polyfills.js:7174) at Object.onInvokeTask (vendor.js:42564) at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (polyfills.js:7173) at Zone.push../node_modules/zone.js/dist/zone.js.Zone.runTask (polyfills.js:6941) defaultErrorLogger @ vendor.js:40419 push../node_modules/@angular/core/fesm5/core.js.ErrorHandler.handleError @ vendor.js:40465 (anonymous) @ vendor.js:43172 push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke @ polyfills.js:7141 push../node_modules/zone.js/dist/zone.js.Zone.run @ polyfills.js:6891 push../node_modules/@angular/core/fesm5/core.js.NgZone.runOutsideAngular @ vendor.js:42532 (anonymous) @ vendor.js:43172 push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke @ polyfills.js:7141 onInvoke @ vendor.js:42573 push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke @ polyfills.js:7140 push../node_modules/zone.js/dist/zone.js.Zone.run @ polyfills.js:6891 (anonymous) @ polyfills.js:7625 push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask @ polyfills.js:7174 onInvokeTask @ vendor.js:42564 push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask @ polyfills.js:7173 push../node_modules/zone.js/dist/zone.js.Zone.runTask @ polyfills.js:6941 drainMicroTaskQueue @ polyfills.js:7348 Promise.then (async) scheduleMicroTask @ polyfills.js:7331 push../node_modules/zone.js/dist/zone.js.ZoneDelegate.scheduleTask @ polyfills.js:7163 onScheduleTask @ polyfills.js:7050 push../node_modules/zone.js/dist/zone.js.ZoneDelegate.scheduleTask @ polyfills.js:7154 push../node_modules/zone.js/dist/zone.js.Zone.scheduleTask @ polyfills.js:6985 push../node_modules/zone.js/dist/zone.js.Zone.scheduleMicroTask @ polyfills.js:7005 scheduleResolveOrReject @ polyfills.js:7615 resolvePromise @ polyfills.js:7561 (anonymous) @ polyfills.js:7477 (anonymous) @ vendor.js:170124 wrappedComplete @ vendor.js:170811 push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.__tryOrUnsub @ vendor.js:170828
3 Answer(s)
-
0
as well, there is the followed error message. POST http://localhost:22742/signalr/negotiate?enc_auth_token=null 500 (Internal Server Error) customers:1 Access to XMLHttpRequest at 'http://localhost:22742/signalr/negotiate?enc_auth_token=null' from origin 'http://localhost:4200' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
-
0
I think it is angular localization that lacks af-ZA. You can map to af. https://github.com/aspnetzero/aspnet-zero-core/blob/dev/angular/src/assets/appconfig.json#L5
-
0
thanks maliming. I have fixed it by add the followed statements
{ "from": " af-ZA", "to": "af" } or set the default language to English by using administration language function.