-
Notifications
You must be signed in to change notification settings - Fork 12k
CLI with linked NPM modules #7137
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
I experience this only when not using AOT. When using the AOT flag on ng serve, the app works as expected. |
Hello, all. Just upgraded to 1.3.0-rc.2 and now I am not able to use linked modules myself. One of the linked modules I use is this one lol. So can always be current with the Master branch. Now when I try to use However, when you call
Running Windows 10 Pro Anyone else running into this? Thanks. |
@jevenson I've experienced the same, however switching to AOT for a development workflow is too slow, it takes too long to rebuild our application on each change with AOT. @jwuliger Your issue seems to be related to having GIT merge conflict markers within the source of |
@mattem Thanks for the response. Yeah, my GIT was all messed up. I fixed that and now I am using the latest |
Please see this guide from the wiki for details on configuration. Note that the last paragraph refers to the app not the linked library. |
Hi, @clydin, when I do use the master branch to do an NPM Link, I do use the |
@clydin Thanks for the info - our library code already conformed to suggestions in the wiki. |
After having a dig through the
|
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.
Repro steps.
Using CLI version 1.0.0 we could successfully use
npm link
to publish from our src directory (publishing Typescript) between our library project and it's consumer to aid in rapid development.Following the upgrade to CLI 1.2.3 we are no longer able to build using the linked src directory.
Using 1.0.0 the function
_isNgModuleMetadata
returns true for modules in the linked source, in 1.2.3 it returns false - leading to the error reported by Angular:Uncaught Error: Unexpected value '[object Object]' imported by the module 'AppModule'. Please add a @NgModule annotation.
(removing the
forRoot
on that module makes the correct unexpected value name appear there)Edit: I've narrowed it down to version 1.0.3 (working) and 1.0.4 (not working)
Desired functionality.
To be able to link to the src of our projects, without having to stay at an older version of CLI. Rebuilding our libaray project on each change is too slow workflow.
Unfortunately this is closed source project, so I can not post the exact source, but I can make a small demo if required given some more time.
The text was updated successfully, but these errors were encountered: