Uncaught Error: Module build failed in webpack


#1

Hello I am having trouble running the tabs starter app. I am doing these-

  1. ionic start hetalia tabs --v2
  2. cd hetalia
  3. ionic serve

Then in the browser I am getting the following error

Uncaught Error: Module build failed: TypeError: Cannot read property ‘content’ of undefined
at Object.typescriptSourcemapLoaderMemory (H:\hetalia2\hetalia\node_modules@ionic\app-scripts\dist\webpack\typescript-sourcemap-loader-memory.js:18:34)
at Object.typescriptSourcemapLoaderMemory (H:\hetalia2\hetalia\node_modules@ionic\app-scripts\dist\webpack\typescript-sourcemap-loader-memory.js:18:34)
at eval (webpack:///./src/pages/tabs/tabs.ts?:1:7)
at Object. (http://localhost:8100/build/main.js:1463:1)
at webpack_require (http://localhost:8100/build/main.js:20:30)
at eval (webpack:///./src/app/app.component.ts?:4:75)
at Object. (http://localhost:8100/build/main.js:3184:1)
at webpack_require (http://localhost:8100/build/main.js:20:30)
at eval (webpack:///./src/app/app.module.ts?:3:73)
at Object. (http://localhost:8100/build/main.js:3170:1)
at webpack_require (http://localhost:8100/build/main.js:20:30)
at eval (webpack:///./src/app/main.dev.ts?:2:70)

Am I missing any steps? Please help


#2

The issue has gone after cleaning cache and reinstalling Ionic