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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Ivy] Error: Missing pipe: translate #32434
Comments
FWIW ngx-translate works perfectly for me with IVY. Did you include the TranslateModule in the Lazy loaded module as well? |
Yes, otherwise it wouldn't have worked with VE. Also, it worked for me until latest 2 or 3 releases. |
I could try to reproduce this, but i need some directions to what can cause such an error, so i can narrow it down to specific parts of our app. |
Ok, so after some painful debugging I have discovered that the error message has nothing to do with the actual error. The problem was that some 3rd-party libraries are not compatible with ivy and ngcc cannot handle them properly. Whenever we import these libraries into some module, components within this module start to blow up with these absolutely irrelevant error messages. Even if we remove translate pipe from the component, we'll get another irrelevant error message about some other non-existant issue. Prior to version 9.0.0-next-1 this was not the case: the error message for these incompatible libraries was somewhat clear (pointing to the line where library's module was imported), but even that one could be improved. The libraries i'm talking about are ng2-file-upload and angular-google-maps, both of them are known to be incompatible with ivy to the point that ngcc cannot handle them correctly. So i can see two main issues here:
|
Should be fixed by #33454 |
How did you found the two 3rd-party libraries what caused the Issue? |
You just go through your angular-based dependencies and remove them one by one until the problem is gone. The libs which were not updated lately and are less popular are more likely to be incompatible. By the way, the 2 mentioned libs are updated atm to work with ivy and latest angular version. |
@pshurygin - is this fixed for you now that #33454 has landed? |
@petebacondarwin |
Thanks @pshurygin |
facing the same issue with v. |
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. |
馃悶 bug report
Is this a regression?
Not an issue with VE. Also not an issue with ivy version below 9.0.0-next-1.
Issue is present at lease with next-3 and next-4 versions.
Description
Here is a compilation error we get with our application with enableIvy: true and angular 9.0.0-next-4
馃敩 Minimal Reproduction
Not sure how to reproduce the error as the stacktrace does not point to any place in our pretty large appliction . We use ngx-translate everywhere (about 2000 usages of translate pipe all over the place). Also we have a lot of lazy-loaded modules wchich also use ngx-translate with TranslateModule.forChild() call.
馃敟 Exception or Error
馃實 Your Environment
Angular Version:
The text was updated successfully, but these errors were encountered: