bug: getting 'pipe could not be found' error when Modal Component uses a custom pipe #21819
Labels
ionitron: needs reproduction
a code reproduction is needed from the issue author
ionitron: support
closes the issue with links to the correct resources
Bug Report
Ionic version:
[ ] 4.x
[x] 5.x
Current behavior:
I get an error in Chrome's dev console that says
The pipe '...' could not be found!
where'...'
is the name of the pipe used in the a modal component's HTML template. The modal is opened from some page. That page also uses the pipe, but successfully, because it imports the module of the pipe into its own .module declaration. The modal component also has a module declaration file which imports the pipe in it, but it seems that the call tothis.modalController.create(...
does not consult the module declaration file of the modal component.Expected behavior:
Expected the pipe to be available for the modal component when it was opened from a a page that successfully uses the same pipe - if only because the module of the page that opened the modal controller already imported the module of the pipe, so why is the pipe not available in the modal as well? The modal's module file also imports that pipe, does that modules file not get consulted when you open the modal via Ionic's ModalController? Let's fix this the right way, please, so that we do not have to rely on workarounds, even if one exists, as the reliance on workarounds erodes the overall quality of the software.
Steps to reproduce:
"The pipe '...' could not be found!"
in the browser's dev-console as soon as the code tries to present the modal componentOther information:
Seems related to issue #7160 and issue #7619 and issue #7621
Ionic info:
The text was updated successfully, but these errors were encountered: