Hi,
I’m trying to upgrade my Beta11 app to RC0… and it’s a nightmare!
Today, I’m facing a “No provider for…” error on a custom pipe that used to work well on Beta11.
When upgrading to RC0, I followed scrupulously the upgrade method (copy to new rc0 project) and did the following steps:
in [app.modules.ts]:
import custom pipes
added my custom pipes to [declarations] array
tried to add them to [entryComponents] array too, but still get the error…
in components where these pipes are required:
I kept the import statements for my custom pipes
I removed the [pipes] array from the [@Component] definition
I don’t understand what I did wrong. Something must have been changed in RC0 that broke my pipes, but I can’t understand what as messages in Console are so unclear: error_handler.js:45 EXCEPTION: Error in ./MyPage class MyPage_Host - inline template:0:0 caused by: No provider for PipDuration!
Any help would be really appreciated in solving this problem.
I’ve had to deal with so many compiling errors because of Rollup (PouchDB…), and now that compiling “seems ok” (but I’m not sure of that!), I get runtime errors (in browser: I don’t even tried to run my app on device…).
Today, I’m so desperate about upgrading to RC0 that I’m wondering if Ionic team has gone to RC0 too fast.
In my opinion, and as far as I can read other questions an comments, RC0 seems to be more a broken Beta12 than a real RC. The process to upgrade indicated here is far from covering all cases, and the Conference app does not help as it does not cover Providers and Pipes concepts…
Also, moving to Rollup seems to be prematured, as mentionned here, and it generates many problems to developpers…
hummm… seems to be a bit complicated and will make the code unclear and difficult to maintain…
I just thought about a simple solution: building my own js library of calculation functions and import it in the pipes?