-
Notifications
You must be signed in to change notification settings - Fork 12k
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
AOT compilation with npm linked module #2763
Comments
An earlier version of this comment said:
I now realise that this wrong, as the comment actually says (highlight mine):
Sorry for confusion. |
Libraries should be using peer dependencies for the needed angular packages. (This is why PR #2291 is forcing node resolution to only use your main app's |
#6292 adds guidance for linked libraries, but requires |
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. |
OS?
Versions.
angular-cli: 1.0.0-beta.17
node: 6.5.0
Repro steps.
I made 3 projects:
Then I linked
common
andauth
toapp
:First, I get an error
Unexpected value 'CommonModule' imported by the module 'AppModule' Error: Unexpected value 'CommonModule' imported by the module 'AppModule'
While running
ng serve
.I saw that this error was fix by the PR #2291
So I tryied to copy/paste the fix = > then
ng serve
worked.I try after that to compile in AOT mode but I get exactly the same error
The command I run:
ng build --target=production --aot
The log given by the failure.
Mention any other details that might be useful.
The
package.json
Note: I get the same result if I use the master instead of the last release.
The text was updated successfully, but these errors were encountered: