Upgrade to Ionic3 - Cannot find module

I’m trying to port my app to Ionic3 Beta 2 with the help of this docs.

I did every step, but when I try to push to a lazy loaded page I get the following error:
Error: Cannot find module '..pagesloginlogin.module'.

I watched at the code in chrome debugger and it seems like the function is searching for the wrong module.
The map of modules looks like this:

var map = {
	"..\\pages\\login\\login.module": [

But the function looks up for ..pagesloginlogin.module, which cannot be found in the map.

Ionic info:
Ionic Framework Version: 3.0.0-beta.2
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.2.2
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 10
Node Version: v7.6.0

Has anyone successfully ported their app to v3? Has anyone experienced a similar issue?

Yes, I just experienced the same problem.
Maybe it is related to this line: import { HomePage} from './favorite';

Cordova CLI: 6.5.0
Ionic Framework Version: 3.0.0-beta.3
Ionic CLI Version: 3.0.0-beta.5
OS: Windows 10
Node Version: v6.9.2

How does your login.module.ts looks like?
Does your login.ts contains @IonicPage() before the @Component()?

Upgrading ionic-app-scripts to 1.2.5 fixed this problem for me :wink:

1 Like

Yes - Upgrading ionic-app-scripts to 1.2.5 worked partially.
I still got this error:
Cannot find module "./favorite

So changed:
import { HomePage} from ‘./favorite’;
import { HomePage} from ‘…/…/pages/home/home’;

or import { HomePage} from ‘./home’;