-
Notifications
You must be signed in to change notification settings - Fork 12k
Error in Could not resolve app module with @ngtools/webpack 1.3.1 #6462
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This has been (supposedly) fixed in 1.3.3. Could you please try again with that version? |
D'oh! Didn't know there was a newer version, just checked some days ago (from VSCode intellisense). Will report ASAP. Thanks for quick reply. |
Just tried uninstalling previous version and installing 1.3.3. No luck, same console output apparently:
BTW repo is updated too now |
I'm having a similar issue with @angular/cli 1.0.5 not resolving modules such as "app/module", but will resolve relative path modules. Downgrading to @angular/cli 1.0.4 and still using ngtools/webpack 1.3.1 resolves the issue. |
@mradcliffe that error has been fixed by 1.0.6. This is a different error. @GiuseppePiscopo we're going to investigate. |
@GiuseppePiscopo Oh I just saw what's going on in your code. In order to do what you're trying to do, you have to add a Adding a |
Oh my... well, first of all big thanks, don't know how much time would I have spent (more) looking for something like that. At some point I remember having that option set, but then removing it. Is that shown somewhere in big prints? I'd be happy to submit a doc PR if needed. Now, I guess I'll have to search through past issues for this runtime error on lazy loaded module, it must have been fixed/covered as well:
|
Uhm, the recent issue talking about this, #4637, was closed due to version moving further, but not really addressing it ... would you consider re-opening this, or maybe I should create a new dedicated issue? |
Without uglifyjs plugin, stacktrace is:
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug Report or Feature Request (mark with an
x
)Versions.
ng --version
. ng is not installed in this project.@
ngtools/webpack is.node --version
: v6.2.2npm --version
: 3.9.5@
ngtools/webpack 1.3.1,Repro steps.
There's a mini sample project showing the issue.
npm i
npm run build-prod
The log given by the failure.
Desired functionality.
Build should complete successfully.
Mention any other details that might be useful.
The app has a lazily loaded module (dubbed private). You can build it in development as well (
npm run build-dev
), serve it from another shell (npm run serve
) and browse to localhost:3000. The readme in repository root shows all npm commands.The AOT build is not using full angular-cli, just @ngtools/webpack.
I tried fiddling with
angularCompilerOptions.genDir
value in AOT tsconfig, with no luck. That just changed the error message, for example it changed the path as Could not resolve "./src/app/module" from "./src/app/module"., but no real clue about it.The text was updated successfully, but these errors were encountered: