Skip to content
This repository has been archived by the owner on Nov 8, 2021. It is now read-only.

System.js import #28

Open
smartm0use opened this issue Sep 18, 2017 · 1 comment
Open

System.js import #28

smartm0use opened this issue Sep 18, 2017 · 1 comment

Comments

@smartm0use
Copy link

smartm0use commented Sep 18, 2017

Hello, I have installed http-loader (npm install @ngx-translate/http-loader --save) and I'm importing it into my project directly from node_modules.

I have edited my systemjs config file and added '@ngx-translate/http-loader': 'node_modules/@ngx-translate/http-loader/bundles' in the map and '@ngx-translate/http-loader' : { defaultExtension: 'js' } in packages.

But I get the following error:

Failed to load resource: the server responded with a status of 404 (Not Found)
zone.js:661 Unhandled Promise rejection: Fetch error: 404 Not Found
Instantiating http://localhost:8080/node_modules/@ngx-translate/http-loader/bundles

Can you tell me what's wrong?

@SamVerschueren
Copy link

SamVerschueren commented Sep 18, 2017

Check the plunkr example. Try using '@ngx-translate/http-loader': 'node_modules/@ngx-translate/http-loader/bundles/http-loader.umd.js'.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants