This repository was archived by the owner on Nov 8, 2021. It is now read-only.
This repository was archived by the owner on Nov 8, 2021. It is now read-only.
404 Error with webpack and interceptor #58
Open
Description
Im using nativescript-angular
TranslateModule.forRoot({
loader: {
provide: TranslateLoader,
deps: [HttpClient],
useFactory: (createTranslateLoader)
}
})
....
{
provide: HTTP_INTERCEPTORS,
useClass: HttpInterceptorService,
multi: true
},
...
export function createTranslateLoader(httpClient: HttpClient) {
return new TranslateHttpLoader(httpClient, "/i18n/", ".json");
}
when i build it with webpack it shows error
ERROR {
"headers": {
"normalizedNames": {},
"lazyUpdate": null,
"headers": {}
},
"status": 404,
"statusText": "ERROR",
"url": "/Users/(*/Library/Developer/CoreSimulator/Devices/2F58ECC2-2E99-46D3-91CC-FC74A3DED5DC/data/Containers/Bundle/Application/ED168D77-6FEE-427F-A08D-DF19CC9EA41F/*.app/app/i18n/ru.json",
"ok": false,
"name": "HttpErrorResponse",
"message": "Http failure response for /Users/*/Library/Developer/CoreSimulator/Devices/2F58ECC2-2E99-46D3-91CC-FC74A3DED5DC/data/Containers/Bundle/Application/ED168D77-6FEE-427F-A08D-DF19CC9EA41F/*.app/app/i18n/ru.json: 404 ERROR",
"error": "Not Found"
}
Metadata
Metadata
Assignees
Labels
No labels