I was running Angular 2 using company computer ( God bless no one from my company see this). And I was starting my app using ng serve
, but it didn’t work. Instead it threw me an error regarding the Broccoli cannot merge trees.
I was running Angular 2 using company computer ( God bless no one from my company see this). And I was starting my app using ng serve
, but it didn’t work. Instead it threw me an error regarding the Broccoli cannot merge trees.
I used angular-cli
create an Angular 2 app, use the default settings. Then I used ng serve
command to start the server and made some changes. I must say the process is much better than before, which I has to change the package.json
and set up a build tool, e.g. gulp
or webpack
, specially to enable live-reloading. Now angular-cli
has all done that for me. Really sweet!
This error is caused by, as you can guess, no Http provider in your ts/js file.
If you have watched the demo of puppy love on ngconf 2016 and pumped to get hands on angualr material 2, trust me, you are not alone.
If you try to use angualr cli to create an app and follow along the demo and find out it doesn’t work, trust me, you are not alone(at least I think so).
If you have the same issue, here’s the how to solve it:
I haven’t writing blogs for years. Last time it landed me a book contract. But as you know, there’s not too much things to share when you in an SAP world.
Things changed, quickly.