Uncaught Error: Cannot find module "../pages/itens/itens"


#1

I’m getting this error below, but the ts are correct, I’ve checked several times. What could be wrong?

Uncaught Error: Cannot find module "…/pages/itens/itens"
at Object. (main.js:52965)
at webpack_require (main.js:20)
at Object. (main.js:53139)
at webpack_require (main.js:20)
at Object. (main.js:93815)
at webpack_require (main.js:20)
at Object. (main.js:82561)
at webpack_require (main.js:20)
at Object. (main.js:105871)
at webpack_require (main.js:20)

Ionic Framework: 2.0.0-rc.4
Ionic Native: 2.2.11
Ionic App Scripts: 0.0.47
Angular Core: 2.2.1
Angular Compiler CLI: 2.2.1
Node: 6.9.4
OS Platform: Windows 10
Navigator Platform: Win32


#2

Perhaps you meant to write “items” instead of “itens”?


#3

No, the names are correct.

… home.ts…

import { ItensPage } from ‘…/pages/itens/itens’;

@Component({
selector: ‘page-home’,
templateUrl: ‘home.html’
})

export class HomePage {

… itens.ts…

@Component({
selector: ‘page-itens’,
templateUrl: ‘itens.html’
})

export class ItensPage {