-
Notifications
You must be signed in to change notification settings - Fork 7
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
Issue with i18n #89
Comments
Hi @keserwan, you don't bother me at all. I'm happy that you discover all those unsupported edge cases (and that you report them so nicely). I guess you run ng build --configuration=production-ar Currently angular-prerender only support to set the npx angular-prerender --configuration=production-ar What do you think? |
Yes I think passing the configuration parameter is what we need. |
Hi @keserwan, I just published v4.2.0 which supports full target specifiers similar to the For your app the options do probably look like this: npx angular-prerender --browser-target website:build:production-ar --server-target website:server:production-ar I will close the issue now since I expect it work. But as always please feel free to reopen it if you notice any bugs. |
Great, I will check and let you know |
I updated to version 4.2.0
I updated the test repo if you want to test with: |
My bad, thanks for catching this bug. I just released v4.2.1. When I update angular-prerender to that version in your test repo it works. I accidentally forgot to read the properties from the regular options in case they are not defined in the given configuration. This caused the error since the tsConfig property is defined as a regular option and is not overwritten in the configuration. |
with v4.2.1 it worked on the demo but not on my live project.
|
The error looks like something in your code is importing "express" and the parser can't find it. Is that possible? |
Hi @chrisguttandin, Thank you again for your great contributions.
Sorry to bother you again, I found an issue when you build the project with multi locale (i18n).
You can check this demo project also to reproduce the issue (I pushed the last changes that you fixed in #87):
https://github.com/keserwan/testAngularPrerender
To reporduce it, you run the following commands:
npm run build:i18n-ssr: this command will create 2 folders "ar" and "en" in "dist/website/server" and "dist/website/browser".
I am getting this error after calling "npx angular-prerender"
Knowing that main.js is not available in "dist/website/server", it is available in the two folders "en" and "ar".
The text was updated successfully, but these errors were encountered: