Core: angular2-seed integration problem

Created on 3 Oct 2016  路  2Comments  路  Source: ngx-translate/core

I have trouble integrating this lib with angular2-seed.

[x?] bug report => check the FAQ and search github for a similar issue or PR before submitting
[x] support request => check the FAQ and search github for a similar issue before submitting
[ ] feature request

Current behavior
After initial tries I returned to the plunker sample and just "copy pasted" it in clean angular2-seed. Receiving this error in browser:
(index):47 Error: (SystemJS) require is not defined...

How to solve this?

Please tell us about your environment:

  • ng2-translate version: 3.0.0
  • Angular version: 2.0.0
  • Browser: [Chrome 53]
  • Language: TypeScript 2.0.2]

Most helpful comment

I had the same issue and was able to fix it by changing

import {TranslateLoader, TranslateStaticLoader, TranslateModule} from 'ng2-translate/ng2-translate';

to

import {TranslateLoader, TranslateStaticLoader, TranslateModule} from 'ng2-translate';

All 2 comments

I had the same issue and was able to fix it by changing

import {TranslateLoader, TranslateStaticLoader, TranslateModule} from 'ng2-translate/ng2-translate';

to

import {TranslateLoader, TranslateStaticLoader, TranslateModule} from 'ng2-translate';

Closing this old issue as @karlhaas provided the solution. Let me know if I should reopen it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

madoublet picture madoublet  路  3Comments

egornoveo picture egornoveo  路  4Comments

ryanki1 picture ryanki1  路  4Comments

jellene4eva picture jellene4eva  路  3Comments

crebuh picture crebuh  路  3Comments