There is a problem with the ionic3 pop-up page using modals

I used Ionic3 to make a mobile hybrid app, and now I want to click the button to pop up a separate page. I use modals to achieve it.
created the page using Ionic3 CLI:ionic g page details, where details is the page I want to pop up.
then in the place where you need to pop up: this.modalCtrl.create ("DetailsPage"). Present ();
) report an error like this:

clipboard.png

this.modalCtrl.create(DetailsPage).present();:

clipboard.png

now my HomeModule module is a lazily loaded module. The page to be popped up is also a lazy loaded module. I suspect it has something to do with this, so I changed DetailsPage to the traditional way of declaring it in AppModule. The final result is exactly the same as before.
ask the boss who has encountered this situation before to show the way. I have been stuck here for 2 days.

I tried to solve it. I was asked to write a mock.js, on the Internet, but it didn"t change.
Ionic 2 Unit Testing: "Uncaught TypeError: Cannot read property"_ getPortal" of undefined throw":
https://stackoverflow.com/que.

Mar.02,2021

tortured me for a week, but still didn't do it in a different way. Ionic lifecycle + tabs style implementation, a little low, is looking forward to someone to solve.


invalid link DetailsPage, is because the details page, you just created is unrecognized and needs to be re-ionic serve directly using ionic3's lazy load.

Menu