-
-
Notifications
You must be signed in to change notification settings - Fork 70
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
[3.0.0-beta.1] Failed loading translation files with aurelia backend and webpack #281
Comments
I think I'm reporting the same issue in #282. By the time I wrote it, this one got published. Sorry for the duplicate! |
@chabou-san, after a quick look I'm not sure if it's the same issue. You see, looks like in my case options are taken into account, because error message has the |
This is the same error I got, as I have the same configuration as you. Your options specify :
whereas the default value for i18n/src/aurelia-i18n-loader.ts Line 38 in e2ff048
This single difference causes the issue in webpack to unsuccessfully load the file. This is supposed to be the error I'm reporting anyway. :-) |
@chabou-san - Oh, I see. You did a great job by pointing out the exact place where the issue occurs. Hope it will help Aurelia team to fix it soon (and no, I'm not forcing you guys to rush :) you doing even greater favor to all of us by creating Aurelia Framework and it's plugins :)). |
Thanks guys for giving the Beta a try. Expected few issues so its great to have you tried it out. I'll try to get to it asap next week. Meanwhile PRs on the port-to-typescript branch are welcome ;) |
@graycrow and @chabou-san can you guys try out the latest beta-2 and see if that fixes your issues? |
@zewa666, unfortunately no, the same error, but now without leading slash: [EDIT] I continuing to investigate the issue and just noticed that it requesting the non-existing file: |
@zewa666, ok, I found the source of my issue, it works now. In the current version of the i18next framework
|
ok so that boils down to a new breaking change of i18next itself. Good catch @graycrow. Would be great if you could build a small sample and share it via a GitHub repo so we can try to calm webpack down. |
For my configuration, beta-2 is fixing the issue. |
|
@graycrow awesome, I'll take a look at it as soon as I can. Having your workaround is great. Ideally as said though I'd like to find a way to treat non-existing translation files as warnings vs errors and continue execution |
I'm submitting a bug report
3.0.0-beta.1
Please tell us about your environment:
Operating System:
Windows 8.1
Node Version:
10.9.0
6.4.1
all
TypeScript 3.0.3
Current behavior:
My translation files included in the Webpack bundle using ModuleDependenciesPlugin:
and this is my aurelia-i18n plugin registration:
After upgrading to 3.0.0-beta.1 this setup doesn't work anymore and throws the following error:
Unhandled rejection (<failed loading /locales/cs-CZ/translat...>, no stack trace)
Expected/desired behavior:
It's working fine with aurelia-i18n 2.3.2
The text was updated successfully, but these errors were encountered: