We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When build an app for production with ng build --prod, the following error is thrown:
ng build --prod
ERROR in Error during template compile of 'AppModule' Function calls are not supported in decorators but 'TranslateModule' was called.
Reason is the forRoot() call in the declaration of the main module.
forRoot()
The text was updated successfully, but these errors were encountered:
@heinerlamprecht thanks for the feedback. I will try to fix the issue shortly.
Sorry, something went wrong.
@heinerlamprecht please see the new 0.5.0 version. Now should support production mode and AoT, but requires extra setup in the app module (see readme)
export function setupTranslateService(service: TranslateService) { return () => service.load(); }
@DenisVuyka I updated to 0.5.0 and everything works like a charm. Thanks for the fast response.
No branches or pull requests
When build an app for production with
ng build --prod
, the following error is thrown:ERROR in Error during template compile of 'AppModule' Function calls are not supported in decorators but 'TranslateModule' was called.
Reason is the
forRoot()
call in the declaration of the main module.The text was updated successfully, but these errors were encountered: