I'm getting the error while trying to acces web application on browser. npm start is not giving any error
I have download .net core 2.0 and followed [https://aspnetzero.com/Documents/Getting-Started-Angular]) .
core.js:1350 ERROR Error: Cannot find module './en-US.js'. at webpackAsyncContext (eval at ../../../common/locales lazy recursive ^./..js$ (main.bundle.js:797), <anonymous>:4134:25) at eval (root.module.ts:63) at ZoneDelegate.invoke (zone.js:392) at Object.onInvoke (core.js:4629) at ZoneDelegate.invoke (zone.js:391) at Zone.run (zone.js:142) at eval (zone.js:844) at ZoneDelegate.invokeTask (zone.js:425) at Object.onInvokeTask (core.js:4620) at ZoneDelegate.invokeTask (zone.js:424) defaultErrorLogger @ core.js:1350 ErrorHandler.handleError @ core.js:1411 (anonymous) @ core.js:5561 ZoneDelegate.invoke @ zone.js:392 Zone.run @ zone.js:142 NgZone.runOutsideAngular @ core.js:4577 (anonymous) @ core.js:5561 ZoneDelegate.invoke @ zone.js:392 onInvoke @ core.js:4629 ZoneDelegate.invoke @ zone.js:391 Zone.run @ zone.js:142 (anonymous) @ zone.js:844 ZoneDelegate.invokeTask @ zone.js:425 onInvokeTask @ core.js:4620 ZoneDelegate.invokeTask @ zone.js:424 Zone.runTask @ zone.js:192 drainMicroTaskQueue @ zone.js:602 ZoneTask.invokeTask @ zone.js:503 invokeTask @ zone.js:1427 globalZoneAwareCallback @ zone.js:1445 XMLHttpRequest.send (async) scheduleTask @ zone.js:2744 ZoneDelegate.scheduleTask @ zone.js:411 onScheduleTask @ zone.js:301 ZoneDelegate.scheduleTask @ zone.js:405 Zone.scheduleTask @ zone.js:236 Zone.scheduleMacroTask @ zone.js:259 (anonymous) @ zone.js:2769 proto.(anonymous function) @ zone.js:1274 (anonymous) @ http.js:1605 Observable._trySubscribe @ Observable.js:172 Observable.subscribe @ Observable.js:160 MapOperator.call @ map.js:57 Observable.subscribe @ Observable.js:157 CatchOperator.call @ catchError.js:80 Observable.subscribe @ Observable.js:157 MergeMapOperator.call @ mergeMap.js:92 Observable.subscribe @ Observable.js:157 CatchOperator.call @ catchError.js:80 Observable.subscribe @ Observable.js:157 (anonymous) @ Observable.js:286 ZoneAwarePromise @ zone.js:861 Observable.toPromise @ Observable.js:284 (anonymous) @ app-session.service.ts:52 ZoneAwarePromise @ zone.js:861 AppSessionService.init @ app-session.service.ts:51 (anonymous) @ root.module.ts:36 (anonymous) @ LocalizedResourcesHelper.ts:8 fire @ index.js:3 fireWith @ index.js:3 (anonymous) @ index.js:3 fire @ index.js:3 fireWith @ index.js:3 (anonymous) @ index.js:3 fire @ index.js:3 fireWith @ index.js:3 done @ index.js:3 (anonymous) @ index.js:3 wrapFn @ zone.js:1075 ZoneDelegate.invokeTask @ zone.js:425 onInvokeTask @ core.js:4620 ZoneDelegate.invokeTask @ zone.js:424 Zone.runTask @ zone.js:192 ZoneTask.invokeTask @ zone.js:499 invokeTask @ zone.js:1427 globalZoneAwareCallback @ zone.js:1445 XMLHttpRequest.send (async) scheduleTask @ zone.js:2744 ZoneDelegate.scheduleTask @ zone.js:411 onScheduleTask @ zone.js:301 ZoneDelegate.scheduleTask @ zone.js:405 Zone.scheduleTask @ zone.js:236 Zone.scheduleMacroTask @ zone.js:259 (anonymous) @ zone.js:2769 proto.(anonymous function) @ zone.js:1274 send @ index.js:3 ajax @ index.js:3 jQuery.(anonymous function) @ index.js:3 getScript @ index.js:3 LocalizedResourcesHelper.loadLocalizedScripts @ LocalizedResourcesHelper.ts:44 LocalizedResourcesHelper.loadResources @ LocalizedResourcesHelper.ts:7 (anonymous) @ AppPreBootstrap.ts:148 fire @ index.js:3 fireWith @ index.js:3 deferred.(anonymous function) @ index.js:3 handleResponse @ index.js:3 (anonymous) @ index.js:3 fire @ index.js:3 fireWith @ index.js:3 done @ index.js:3 (anonymous) @ index.js:3 wrapFn @ zone.js:1075 ZoneDelegate.invokeTask @ zone.js:425 onInvokeTask @ core.js:4620 ZoneDelegate.invokeTask @ zone.js:424 Zone.runTask @ zone.js:192 ZoneTask.invokeTask @ zone.js:499 invokeTask @ zone.js:1427 globalZoneAwareCallback @ zone.js:1445 XMLHttpRequest.send (async) scheduleTask @ zone.js:2744 ZoneDelegate.scheduleTask @ zone.js:411 onScheduleTask @ zone.js:301 ZoneDelegate.scheduleTask @ zone.js:405 Zone.scheduleTask @ zone.js:236 Zone.scheduleMacroTask @ zone.js:259 (anonymous) @ zone.js:2769 proto.(anonymous function) @ zone.js:1274 send @ index.js:3 ajax @ index.js:3 (anonymous) @ index.js:3 Deferred @ index.js:3 abp.ajax @ index.js:3 AppPreBootstrap.getUserConfiguration @ AppPreBootstrap.ts:122 (anonymous) @ AppPreBootstrap.ts:35 (anonymous) @ AppPreBootstrap.ts:68 fire @ index.js:3 fireWith @ index.js:3 deferred.(anonymous function) @ index.js:3 (anonymous) @ index.js:3 fire @ index.js:3 fireWith @ index.js:3 done @ index.js:3 (anonymous) @ index.js:3 wrapFn @ zone.js:1075 ZoneDelegate.invokeTask @ zone.js:425 onInvokeTask @ core.js:4620 ZoneDelegate.invokeTask @ zone.js:424 Zone.runTask @ zone.js:192 ZoneTask.invokeTask @ zone.js:499 invokeTask @ zone.js:1427 globalZoneAwareCallback @ zone.js:1445 XMLHttpRequest.send (async) scheduleTask @ zone.js:2744 ZoneDelegate.scheduleTask @ zone.js:411 onScheduleTask @ zone.js:301 ZoneDelegate.scheduleTask @ zone.js:405 Zone.scheduleTask @ zone.js:236 Zone.scheduleMacroTask @ zone.js:259 (anonymous) @ zone.js:2769 proto.(anonymous function) @ zone.js:1274 send @ index.js:3 ajax @ index.js:3 (anonymous) @ index.js:3 Deferred @ index.js:3 abp.ajax @ index.js:3 AppPreBootstrap.getApplicationConfig @ AppPreBootstrap.ts:45 AppPreBootstrap.run @ AppPreBootstrap.ts:15 (anonymous) @ root.module.ts:33 ZoneAwarePromise @ zone.js:861 (anonymous) @ root.module.ts:32 ApplicationInitStatus.runInitializers @ core.js:3451 (anonymous) @ core.js:5379 _callAndReportToErrorHandler @ core.js:5558 (anonymous) @ core.js:5377 ZoneDelegate.invoke @ zone.js:392 onInvoke @ core.js:4629 ZoneDelegate.invoke @ zone.js:391 Zone.run @ zone.js:142 NgZone.run @ core.js:4446 PlatformRef.bootstrapModuleFactory @ core.js:5368 (anonymous) @ core.js:5447 ZoneDelegate.invoke @ zone.js:392 Zone.run @ zone.js:142 (anonymous) @ zone.js:844 ZoneDelegate.invokeTask @ zone.js:425 Zone.runTask @ zone.js:192 drainMicroTaskQueue @ zone.js:602 Promise resolved (async) scheduleMicroTask @ zone.js:585 ZoneDelegate.scheduleTask @ zone.js:414 Zone.scheduleTask @ zone.js:236 Zone.scheduleMicroTask @ zone.js:256 scheduleResolveOrReject @ zone.js:842 ZoneAwarePromise.then @ zone.js:932 setDriver @ localforage.js:2360 LocalForage @ localforage.js:2173 4.3 @ localforage.js:2422 s @ localforage.js:7 e @ localforage.js:7 (anonymous) @ localforage.js:7 i @ localforage.js:7 (anonymous) @ localforage.js:7 (anonymous) @ localforage.js:2428 ../../../../localforage/dist/localforage.js @ vendor.bundle.js:2051 webpack_require @ inline.bundle.js:55 (anonymous) @ local-storage.service.ts:3 ../../../../../src/shared/utils/local-storage.service.ts @ main.bundle.js:728 webpack_require @ inline.bundle.js:55 (anonymous) @ utils.module.ts:10 ../../../../../src/shared/utils/utils.module.ts @ main.bundle.js:752 webpack_require @ inline.bundle.js:55 (anonymous) @ app.module.ts:22 ../../../../../src/app/app.module.ts @ main.bundle.js:60 webpack_require @ inline.bundle.js:55 (anonymous) @ root.module.ts:11 ../../../../../src/root.module.ts @ main.bundle.js:536 webpack_require @ inline.bundle.js:55 (anonymous) @ main.ts:6 ../../../../../src/main.ts @ main.bundle.js:504 webpack_require @ inline.bundle.js:55 0 @ main.bundle.js:805 webpack_require @ inline.bundle.js:55 webpackJsonpCallback @ inline.bundle.js:26 (anonymous) @ main.bundle.js:1 zone.js:661 Unhandled Promise rejection: Cannot find module './en-US.js'. ; Zone: <root> ; Task: Promise.then ; Value: Error: Cannot find module './en-US.js'. at webpackAsyncContext (eval at ../../../common/locales lazy recursive ^./..js$ (main.bundle.js:797), <anonymous>:4134:25) at eval (root.module.ts:63) at ZoneDelegate.invoke (zone.js:392) at Object.onInvoke (core.js:4629) at ZoneDelegate.invoke (zone.js:391) at Zone.run (zone.js:142) at eval (zone.js:844) at ZoneDelegate.invokeTask (zone.js:425) at Object.onInvokeTask (core.js:4620) at ZoneDelegate.invokeTask (zone.js:424) Error: Cannot find module './en-US.js'. at webpackAsyncContext (eval at ../../../common/locales lazy recursive ^./.*.js$ (<a class="postlink" href="http://localhost:4200/main.bundle.js:797:1">http://localhost:4200/main.bundle.js:797:1</a>), <anonymous>:4134:25) at eval (webpack-internal:///../../../../../src/root.module.ts:80:102) at ZoneDelegate.invoke (webpack-internal:///../../../../zone.js/dist/zone.js:392:26) at Object.onInvoke (webpack-internal:///../../../core/esm5/core.js:4825:33) at ZoneDelegate.invoke (webpack-internal:///../../../../zone.js/dist/zone.js:391:32) at Zone.run (webpack-internal:///../../../../zone.js/dist/zone.js:142:43) at eval (webpack-internal:///../../../../zone.js/dist/zone.js:844:57) at ZoneDelegate.invokeTask (webpack-internal:///../../../../zone.js/dist/zone.js:425:31) at Object.onInvokeTask (webpack-internal:///../../../core/esm5/core.js:4816:33) at ZoneDelegate.invokeTask (webpack-internal:///../../../../zone.js/dist/zone.js:424:36)
4 Answer(s)
-
0
Hi @ManojReddy,
Thanks for your report. Fixed here <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/issues/653">https://github.com/aspnetzero/aspnet-ze ... issues/653</a>
-
0
Hi,
Thanks for the quick fix.
Shall I apply this fix in my local file or shall I wait for the next upgrade of the framework?
-
0
You can apply the changes because it is a small change. It will not effect your future updates.
-
0
Thanks for your response :)