Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Error: Cannot find module './ar.js' #5933


User avatar
0
361apps created

dears, we face this exception at client start-up which causing the whole system behavior to change whie in arabic language (like not being able to retrive the items and so on), so it is urgent and show stopper at the moment (Arabic is the baisc language of the system we're developing).

Please let us know what do you need to investiage and fix this ASAP.

the full stack of the exption is below:

ERROR Error: Uncaught (in promise): Error: Cannot find module './ar.js' Error: Cannot find module './ar.js' at ..js$ namespace object:5 at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (zone.js:388) at Object.onInvoke (core.js:3820) at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (zone.js:387) at Zone.push../node_modules/zone.js/dist/zone.js.Zone.run (zone.js:138) at zone.js:872 at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:421) at Object.onInvokeTask (core.js:3811) at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:420) at Zone.push../node_modules/zone.js/dist/zone.js.Zone.runTask (zone.js:188) at ..js$ namespace object:5 at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (zone.js:388) at Object.onInvoke (core.js:3820) at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (zone.js:387) at Zone.push../node_modules/zone.js/dist/zone.js.Zone.run (zone.js:138) at zone.js:872 at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:421) at Object.onInvokeTask (core.js:3811) at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:420) at Zone.push../node_modules/zone.js/dist/zone.js.Zone.runTask (zone.js:188) at resolvePromise (zone.js:814) at resolvePromise (zone.js:771) at zone.js:873 at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:421) at Object.onInvokeTask (core.js:3811) at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:420) at Zone.push../node_modules/zone.js/dist/zone.js.Zone.runTask (zone.js:188) at drainMicroTaskQueue (zone.js:595) defaultErrorLogger @ core.js:1673 push../node_modules/@angular/core/fesm5/core.js.ErrorHandler.handleError @ core.js:1719 next @ core.js:4311 schedulerFn @ core.js:3551 push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.__tryOrUnsub @ Subscriber.js:196 push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.next @ Subscriber.js:134 push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._next @ Subscriber.js:77 push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next @ Subscriber.js:54 push../node_modules/rxjs/_esm5/internal/Subject.js.Subject.next @ Subject.js:47 push../node_modules/@angular/core/fesm5/core.js.EventEmitter.emit @ core.js:3535 (anonymous) @ core.js:3842 push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke @ zone.js:388 push../node_modules/zone.js/dist/zone.js.Zone.run @ zone.js:138 push../node_modules/@angular/core/fesm5/core.js.NgZone.runOutsideAngular @ core.js:3779 onHandleError @ core.js:3842 push../node_modules/zone.js/dist/zone.js.ZoneDelegate.handleError @ zone.js:392 push../node_modules/zone.js/dist/zone.js.Zone.runGuarded @ zone.js:154 _loop_1 @ zone.js:677 api.microtaskDrainDone @ zone.js:686 drainMicroTaskQueue @ zone.js:602 Promise.then (async) scheduleMicroTask @ zone.js:578 push../node_modules/zone.js/dist/zone.js.ZoneDelegate.scheduleTask @ zone.js:410 onScheduleTask @ zone.js:297 push../node_modules/zone.js/dist/zone.js.ZoneDelegate.scheduleTask @ zone.js:401 push../node_modules/zone.js/dist/zone.js.Zone.scheduleTask @ zone.js:232 push../node_modules/zone.js/dist/zone.js.Zone.scheduleMicroTask @ zone.js:252 scheduleResolveOrReject @ zone.js:862 resolvePromise @ zone.js:808 (anonymous) @ zone.js:724 webpackJsonpCallback @ bootstrap:23 (anonymous) @ app-main-main-module.js:1


5 Answer(s)
  • User Avatar
    0
    361apps created

    any update about this please? it's an urgent issue

  • User Avatar
    0
    maliming created
    Support Team

    Maybe related to this issue. https://github.com/aspnetzero/aspnet-zero-core/issues/1343#issuecomment-404737539

  • User Avatar
    0
    361apps created

    i've followed the whole thread, and now i got a new error not reported in that thread! below is the error when i try to use the arabic (like in pipe formating of date and currency).

    DashboardComponent.html:309 ERROR Error: Missing locale data for the locale "ar". at findLocaleData (common.js:1148) at getLocaleCurrencies (common.js:1037) at getCurrencySymbol (common.js:1159) at CurrencyPipe.push../node_modules/@angular/common/fesm5/common.js.CurrencyPipe.transform (common.js:5351) at checkAndUpdatePureExpressionInline (core.js:9939) at checkAndUpdateNodeInline (core.js:10511) at checkAndUpdateNode (core.js:10469) at debugCheckAndUpdateNode (core.js:11102) at debugCheckRenderNodeFn (core.js:11088) at Object.eval [as updateRenderer] (DashboardComponent.html:310)

    Like for example running the following line (inside template Dashboard component) would result the error: <td>{{stat.averagePrice | currency}}</td>

    Also note that, i've removed and re-installed my node_modules with no luck to get it working.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @361apps

    There are two solutions.

    1. Downgrade ngx-bootstrap to 3.0.1.
    2. Or use ngx-bootstrap 3.1.1 and apply changes in the below PR into your solution https://github.com/aspnetzero/aspnet-zero-core/pull/1901/files
  • User Avatar
    0
    361apps created

    Hi ismcagdas, it's been a while now, i've followed every thread you provided to the letter, yet couldn't get this to work!.

    also, noted some other client like us asking but with no luck to get an answer too https://support.aspnetzero.com/QA/Questions/4547#answer-f803f685-bba6-43b5-a264-ce354573863a

    I think i understand all points mentioned exept the part of the needed change to re-activate the client ability to swtich the language, at this point of dicussion https://support.aspnetzero.com/QA/Questions/4547#answer-d2e2889e-634e-4ba7-83dc-0dad96b3bff3

    I fixed everything, but as you exactly stated before i lost the ability to swithc the langauge, any ideas please?