-
Notifications
You must be signed in to change notification settings - Fork 9
ng serve command is broken after installing package created by angular-librarian #51
Comments
That's very strange--I'll try setting up a project myself and seeing what happens |
it looks like the CLI changed how they're handling packages in 1.2 so I think what's happening is that installing a 3rd party package installs the |
I ran |
even after |
you're getting the same error? |
just removed everything and did with npm install - and now it works, weird.. |
ok, now I got something else when try to include the module:
|
Yeah I did too, try doing |
sorry, my bad, true |
now something new:
|
Weird, I didnt get that. Can I see your |
|
and the most weird thing:
it works BUT when I stop |
Interesting...still looking into it |
I'm not sure if this is looking like something the library is doing wrong... This issue against the CLI has devs complaining of the same problem. |
Yes, I also find this thread. |
Further investigation led to this answer by @trekhleb which led to this answer by @SebastianSchenk So I'm not sure what to think... |
So...that error doesn't have a big effect on running Basically, as you said, @stevermeister, if you just save a file for a second time, it'll recompile no problem...this is a really odd problem. |
Quick question, @stevermeister, what OS are you using? |
macOS Sierra all information about env is provided here - angular/angular-cli#6961 |
Well there goes that theory 😢 Still trying to parse it out... |
Just a "update":
|
I may have figured it out! I think its two-fold:
So (and you can do this from within your Angular CLI app), modify the "types": "./index.d.ts", becomes: "typings": "./angular-switchery.d.ts", And let me know if that fixes anything... |
I published my test library for Angular librarian with the changes and it seems to be working. It also makes it so you don't have to do |
@stevermeister, I'll leave this to you to close. You can do so by updating to the latest version, if need be. |
@gonzofish |
Excellent! |
not sure whether it's a bug of angular-librarian, but decided to report it also here to let you know
angular/angular-cli#6961
The text was updated successfully, but these errors were encountered: