kriasoft / AngularJS-SPA-Template

AngularJS SPA Template for Visual Studio is a project skeleton for a simple single-page web application (SPA) built with AngularJS, Bootstrap, and ASP.NET (MVC, Web Api, SignalR).
http://tarkus.me/post/32121691785
Other
104 stars 65 forks source link

Module not found #15

Open robeverett opened 6 years ago

robeverett commented 6 years ago

I'm trying to use Material instead of Bootstrap in an Angular project template project inside an asp.net core 2.1 solution in VS 2017. I'm using Angular 7, but the ClientApp won't let me remove Bootstrap, since I read Bootstrap and Angular material are mutually exclusive.

The problem is when I run ng serve on the command line as instructed incorrectly here: https://docs.microsoft.com/en-us/aspnet/core/client-side/spa/angular?view=aspnetcore-2.1&tabs=visual-studio npm start doesn't work.

Everything worked fine until I tried to remove Bootstrap. But I want to use Angular Material instead !!

This has also wasted me an entire day, since, I decided to start afresh with a new project, yet for some strange reason the ClientApp angular project in the .net core solution insists on using Angular 5.2.0, instead of the latest. So now I've got to go through the process of updating all the package.json stuff. :(

robeverett commented 6 years ago

No worries, I found an article, saying just delete the ClientApp folder, update the CLI, then re-add ClientApp to the .net core project. Still only gives version 7.0.0 of angular and not the latest, but better than nothing!