Error: Cannot find module "../pages/tabs/tabs"

Tabs Starter Template Works Fine. But When i add New page (Example Login page , Using Ionic g Command in CLI) Out of Tabs pages. I set Login Page as Root Page. When Clicking, It routes to Tabs Page.

It shows tabs.module.ts is missing. In Default Template also Module.ts is missing for tabs. Only tabs.html and tabs.ts is found in Starter Template. Why it asks for tabs.module.ts suddenly when i implement new page?

Expected behavior:
Is tabs.module.ts should be presented in Tabs Started Template?

Steps to reproduce:
Start Ionic V2 project with Tabs starter template.
Add any new page and Mark that as Rootpage.
The Problem Occurs!

Error

Runtime Error
Cannot find module "../pages/tabs/tabs"
Stack
Error: Cannot find module "../pages/tabs/tabs"
at d (http://localhost:8100/build/polyfills.js:3:3991)
at Object.webpackEmptyContext.keys (http://localhost:8100/build/main.js:55628:7)
at webpack_require (http://localhost:8100/build/main.js:48:30)
at Object. (http://localhost:8100/build/main.js:74491:77)
at webpack_require (http://localhost:8100/build/main.js:48:30)
at Object. (http://localhost:8100/build/main.js:74228:73)
at webpack_require (http://localhost:8100/build/main.js:48:30)
at Object. (http://localhost:8100/build/main.js:111359:70)
at webpack_require (http://localhost:8100/build/main.js:48:30)
at http://localhost:8100/build/main.js:140:18
at http://localhost:8100/build/main.js:143:10

Code: Here is the Repo: https://github.com/jinuem/IonicV2Tabs/

Your path in your login.ts file is wrong.
It should be …/tabs/tabs

1 Like

Wow… Thanks…

I didn’t notice that … Simple Mistake cause me 4 hours of work :frowning:

1 Like

https://cdn.meme.am/instances/37666183.jpg

4 Likes