-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warning on build with angular-cli beta28 #2
Comments
+1 |
Sorry, I don't use angular-cli, so would appreciate if someone else would look into this. Maybe this is related? andris9/encoding#16 |
``` WARNING in ./~/@biesbjerg/ngx-translate-po-http-loader/dist/index.js Cannot find source file '../src/index.ts' ```
Is this still an issue in final? |
Sorry, I switched to using plain |
I'm still having this problem with the latest angular-cli 1.0.1. Strangely however with Ionic this works perfectly. |
Yeah, I'm using ionic so don't really feel like investigating this issue, especially since it's just a warning and everything supposedly works. I'll keep this issue open and maybe someone will come along and contribute a PR. |
@biesbjerg it's not just a warning. Angular 2 completely fails to work leading to a black error screen. |
Good to know. Still, I need someone else taking the lead on this one. A PR is welcome! |
I' m kind of new to webpacks but I'll take a look at this tomorrow. |
Is there any easy solution on this? It broken my application :( |
@chlupaccom I'm not really sure in what cases Iconv is used here. But after just commenting out the requirement in the |
@lahdekorpi Thanks a lot! It really works now! Maybe the encoding package is not needed now. angular/angular-cli#4348 (comment) |
Is it related with |
|
|
@biesbjerg yeah, it's related with andris9/encoding#16 |
If we extract the angular-cli's /node_modules/.bin/po2json input.po output.json --pretty --format=mf |
Here comes a detailed workaround:
|
I fixed this with the solution of iongion. See: save this in a postinstall.js
In your package.json:
|
Works like a charm @PauwelsBart. Thanks. |
After upgrading to the latest angular-cli version, I now have a warning on build due to this library (more specifically, the
encoding
lib needed bygettext-parser
):The text was updated successfully, but these errors were encountered: