Last post Jun 25, 2018 03:32 PM by bruce (sqlwork.com)
Jun 24, 2018 01:46 AM|Markus33|LINK
Can someone explain to me why my Angular project fails to compile in Visual Studio Code? Im not sure what going wrong with my app. I am trying to build project with some add-ins and other packages like package json. because it asks for these packages.But
every time i try to compile the project it does not show anything in the browser. It launches the browser but not shows anything in the browser.This behavior started occurring after i tried to update the html file of the project. I tried for a little while
today to fix the problem but no piece of cake! I am confused also as to which command prompt or console that is hould be doing all of the updating to the proejct(Nod.js, Angular cli, or Commander for windows) I just found that I could launch the app also using
Node.jc prompt but not sure if this is safe! Can someone make it clear to me what console should i really use, to be able to create and update my package's for Angular2 projects in Visual Studio Code editor. Also i would like some advice on the error it says
the program successfully compiled but then still it wont launch in browser comes back empty. It gives me (cannot GET) error. Please help! Markus
Jun 25, 2018 05:03 AM|Brando ZWZ|LINK
Could you please tell me how you complie the angualr project in VS code?
Do you install some extension for angualr in VS code?
Do you complie it using the terminal or other way?
It gives me (cannot GET) error. Please help! Markus
Could you please post more details information about the "(cannot GET) error" ?
Does it return any staus code and details error message?
I suggest you could use F12 develop tool to see how the netowrk work for your angular project.
Jun 25, 2018 03:32 PM|bruce (sqlwork.com)|LINK
assuming your using angular cli to build and get any errors its:
to run its:
which also does a dev build and starts the test node web server. this also starts a file watcher, which uses web packs hot load to reload a page on changes. you just open the browser with the correct address.
once you can manually do this, you should be able to setup your .vs/launch.json to do this.