-
Notifications
You must be signed in to change notification settings - Fork 12k
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
i18nfile: Path must be a string or a buffer #3625
Comments
Found the solution: I had to use i18n-file instead of i18nFile...
But why is i18nFile accepted by ng as well? |
The commands are indeed --i18n-file, --i18n-format and --locale Because you are passing locale angular compiler is expecting --i18n-file, since you did not give it to the cli a null value is passed on to the compiler. |
@tdesmet thanks for your reply. I figured something like that indeed. Maybe good to have some validation? |
I have no idea, I'm just guessing here :), might be I made a mistake somewhere... |
it's working now, but I've spent hours on debugging this... Until I found your unit test, and I found out I had made a typo... |
Seems like there's a bug with the way flags are resolved. The i18nFile seems to work here locally. We'll investigate. |
Found the source cause and coming up with a fix; Ember-CLI treats |
Previously this resulted in weird behaviour, now we automatically add an alias for the camelize version of the flag name. Fixes angular#3625.
Previously this resulted in weird behaviour, now we automatically add an alias for the camelize version of the flag name. Fixes angular#3625.
Previously this resulted in weird behaviour, now we automatically add an alias for the camelize version of the flag name. Fixes #3625.
Previously this resulted in weird behaviour, now we automatically add an alias for the camelize version of the flag name. Fixes angular#3625.
Previously this resulted in weird behaviour, now we automatically add an alias for the camelize version of the flag name. Fixes angular#3625.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
OS?
Windows 10
Versions.
Repro steps.
error:
If I omit i18nfile, it works fine.
So it seems it cannot find the file. I've tried all options, also tried using quotes, single quotes, double quotes, etc as per @tdesmet his previous suggestion. Tried typescript@2.0.3 as well as 2.1.4 as suggested by @hansl before.
Also tried using full paths, and relative paths. About relative paths, the i18n folder is in /src/i18n; the app is in /src/app. Not sure if that makes a difference?
The text was updated successfully, but these errors were encountered: