You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 1, 2020. It is now read-only.
I'm submitting a ... (check one with "x")
[x ] bug report
[ ] feature request
Current behavior:
I have a repo with three folder : 2 ionic apps and a common module. The goal of this common module is to provide common information for the two ionic projects (the module contains providers, component, models, pages, ...).
But when you try to lazy load a page from the module, it doesn't work ("core.js:1350 ERROR Error: Uncaught (in promise): invalid link: MyPage").
ps: my current ionic version is 4.11, but it's an Ionic v3 application.
Expected behavior:
The expected behaviour would be a working lazy loading.
Clone github repo and run npm install on each of the three folder. After that you can run ionic serve from both folder ionicProjectA and ionicProjectB.
The two pages that will be displayed will be the same (a button "My component" and a button "Launch"). Press "Launch" to navigate to another page. In project A it doesn't work (because of live reload) and in project B, it works (no live reload). To switch from live reload to no live reload, just comment/uncomment the lines in (my-page.module.ts, my-page.ts and my-module.module.ts).
Is it possible that Ionic doesn't "see" the IonicPage() annotation because this annotation isn't in the src folder ? If true, is it possible to extends the watcher to another folder so Ionic can recognize the annotation ?
I'm submitting a ... (check one with "x")
[x ] bug report
[ ] feature request
Current behavior:
I have a repo with three folder : 2 ionic apps and a common module. The goal of this common module is to provide common information for the two ionic projects (the module contains providers, component, models, pages, ...).
But when you try to lazy load a page from the module, it doesn't work ("core.js:1350 ERROR Error: Uncaught (in promise): invalid link: MyPage").
ps: my current ionic version is 4.11, but it's an Ionic v3 application.
Expected behavior:
The expected behaviour would be a working lazy loading.
Steps to reproduce:
https://github.com/stephaneHillerCGI/ionicCommonModule
Clone github repo and run npm install on each of the three folder. After that you can run ionic serve from both folder ionicProjectA and ionicProjectB.
The two pages that will be displayed will be the same (a button "My component" and a button "Launch"). Press "Launch" to navigate to another page. In project A it doesn't work (because of live reload) and in project B, it works (no live reload). To switch from live reload to no live reload, just comment/uncomment the lines in (my-page.module.ts, my-page.ts and my-module.module.ts).
Related code:
The code of the application can be clone from : https://github.com/stephaneHillerCGI/ionicCommonModule
Other information:
Is it possible that Ionic doesn't "see" the IonicPage() annotation because this annotation isn't in the src folder ? If true, is it possible to extends the watcher to another folder so Ionic can recognize the annotation ?
The text was updated successfully, but these errors were encountered: