Error: Cannot find module "."

Error: Cannot find module "."
at d (http://localhost:8100/build/polyfills.js:3:3987)
at webpackMissingModule (http://localhost:8100/build/main.js:119524:61)
at Anonymous function (http://localhost:8100/build/main.js:119524:9)
at Anonymous function (http://localhost:8100/build/main.js:119522:98)
at webpack_require (http://localhost:8100/build/main.js:20:12)
at Anonymous function (http://localhost:8100/build/main.js:59990:22)
at webpack_require (http://localhost:8100/build/main.js:20:12)
at Anonymous function (http://localhost:8100/build/main.js:83183:22)
at webpack_require (http://localhost:8100/build/main.js:20:12)
at Anonymous function (http://localhost:8100/build/main.js:60207:22)
at webpack_require (http://localhost:8100/build/main.js:20:12)
at Anonymous function (http://localhost:8100/build/main.js:124053:22)
at webpack_require (http://localhost:8100/build/main.js:20:12)
at Anonymous function (http://localhost:8100/build/main.js:123735:22)
at webpack_require (http://localhost:8100/build/main.js:20

It was working fine. I have added extra pages and modal. When i saved it I got this error. Is it becuase of some version change?

More a broken import of “.” somewhere.
Look through the imports you created with the last changes since it worked.

Found the solution. checked into main.js line 119522 . Newly added pages are not imported in module.require. I dono why it throws since new page was working fine last build. I deleted that page and created new one. Now its working.

1 Like

in my case i had to rename all imports from ionic-angular/umd to ionic-angular like:

import { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular/umd' to

import { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular';
2 Likes