ionic2-webpack2-starter icon indicating copy to clipboard operation
ionic2-webpack2-starter copied to clipboard

build:prod fails with Could not resolve "./src/app/app.module"

Open mirkonasato opened this issue 8 years ago • 1 comments

After upgrading webpack to 2.2.0 and @ngtools/webpack to 1.2.4, npm run build:prod shows this weird error

ERROR in Could not resolve "./src/app/app.module" from "./src/app/app.module".

However the build seems to complete anyway, and what's been generated in dist runs fine, so it might just be a spurious error.

mirkonasato avatar Jan 21 '17 21:01 mirkonasato

It seems to be a problem with @ngtools/webpack. I tried updating all the dependencies. But this error still exists. I tried the steps given here. But it gives another error as mentioned here

midhunadarvin avatar Jun 17 '17 08:06 midhunadarvin