-
Notifications
You must be signed in to change notification settings - Fork 122
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
Integration with Angular-Cli #72
Comments
Please, take a look at the "Consuming your library during development" section in README. Follow those steps and you'll be able to integrate with CLI |
hello, |
@morganpizzini Can you verify that your changes are reflected in the folder you npm linked inside your node_modules? |
@caroso1222 i just verify that, my link works |
Happened to me a few days ago. Possible CauseYour app is trying to compile the library when it hasn't finished compiling. If you run Possible SolutionI would tweak the Hey @caroso1222 remember we discussed this a few days ago? |
I tried with both options but none of them worked. If you are using |
Seems to be working for me here locally: I'm on macOS Sierra and using the default generated library. Are you able to reproduce this consistently? Or does it happen occasionally e.g. when the size of library is bigger (and thus compilation would take longer)? Does running Also, what OS are you on? Thanks in advance and thank you @caroso1222 and @jdjuan for jumping in! |
Hi, I have just recreated the whole environment as in the readme file, Updatei retry tests on my first project, and after adding --poll 10000 seems to work Update 2No more errors but continues to work on non-updated code Update 3Right after a whole test day i can say that:
I appreciate your work a lot and I found it very useful, If I can recommend an improvement:
|
@morganpizzini — Thank you for your hard work and feedback, much appreciated! 👍 I am using the default generated library and a freshly generated Angular app using Angular CLI in the video. I think it is a great idea to include some kind of demo app to quickly test the library in addition to using Also, out of interest, do you have the same issue when you npm link the Working with the Can you give that a try to see if it works as expected? Thanks! |
Of course! I will try it in the next few days and update this comment |
@morganpizzini — Thank you, Morgan. |
Tests and WORKS!! Run |
@morganpizzini — Awesome, I have added a section to the README file in case others experience the same issue: https://github.com/jvandemo/generator-angular2-library#how-can-i-avoid-recompilation-during-development. Thank you for the confirmation! 👍 |
Closing this issue. Feel free to re-open if needed. |
Isn't working with angular 5. |
Update tsconfig.app.json with:
|
Hi, I am stuck with the re-compilation issue. These are my dependencies.
I followed the guide to avoid re compile on the library project. However, I do not see the compiler kick off with a re-compile cycle and I am not sure if I have configured everything correctly for Angular 5 +. I performed the npm link inside src folder of library project. tsconfig.app.json is configured just as mentioned 19 days ago.
I am starting server just with |
Hi,
nice work!
It is possible to integrate with Angular-Cli project?
Thanks.
The text was updated successfully, but these errors were encountered: