-
Notifications
You must be signed in to change notification settings - Fork 12k
Cannot use NPM Link with angular/cli v1.0.0-rc.2 any more #5428
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
Heya, errors like The CLI always runs statical analysis on code to ensure it will run when compiled with AOT. This may cause a lot of static analysis errors to surface when importing your project into the CLI, or upgrading for older versions where we didn't run this kind of analysis. A good resource on how to to debug these errors is https://github.com/rangle/angular-2-aot-sandbox#aot-dos-and-donts. |
Hi @filipesilva , And as stated in the issue, it happens only of you use NPM Link to reference the two projects. When I use for example NPM pack and install the generated tarball in the other project, everything works fine. We tried on Linux as well, there the issue exists as well. When referencing the tarball, everything works as expected. When using NPM link, For our project it's really a pain that we cannot use NPM link any more. This slows us down tremendously. best regards, |
If it works without npm link, then you might be getting #3847 or a number of the other issues we have with npm link. |
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.
@angular/cli: 1.0.0-rc.2
node: 7.6.0
os: win32 x64
@angular/common: 4.0.0-rc.3
@angular/compiler: 4.0.0-rc.3
@angular/core: 4.0.0-rc.3
@angular/forms: 4.0.0-rc.3
@angular/http: 4.0.0-rc.3
@angular/platform-browser: 4.0.0-rc.3
@angular/platform-browser-dynamic: 4.0.0-rc.3
@angular/router: 4.0.0-rc.3
@angular/cli: 1.0.0-rc.2
@angular/compiler-cli: 4.0.0-rc.3
Repro steps.
Create two simple Projects with cli:
Create a very simple component in project-b and export it in a module.
In project-b do:
npm link
In project-a do:
npm link project-b
and use the simple component from project-b. ng serve and ng build fails, regardless if using flag --aot or not.
If I pack the project-b with npm pack and then install the tarball in project-a instead of npm linking, everything works as expected.
The log given by the failure.
Desired functionality.
I want to be able to use NPM LINK because this saves so much time during development.
Mention any other details that might be useful.
It still worked in [email protected]
The text was updated successfully, but these errors were encountered: