ngx-translate / http-loader

A loader for ngx-translate that loads translations with http calls
MIT License
191 stars 69 forks source link

System.js import #28

Open smartm0use opened 7 years ago

smartm0use commented 7 years ago

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 commented 7 years ago

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