TrilonIO / aspnetcore-Vue-starter

*NEW* Asp.net Core & Vue.js (ES6) SPA Starter kit - Vuex, webpack, Web API, Docker, and more! By @TrilonIO
https://www.trilon.io
MIT License
1.22k stars 266 forks source link

Stuck on loading screen. #32

Closed ghost closed 7 years ago

ghost commented 7 years ago

I cloned the project, did a dotnet restore successfully, and an npm install successfully. Then running the application both from the CLI and from withing Visual Studio, I am getting just the loading screen. The console gives a 404 for the following files:

http://localhost:5000/dist/site.css 
http://localhost:5000/dist/main.js 
MarkPieszak commented 7 years ago

Can you do a quick npm run dev and see if that handles it better? That sets the ASPNETCORE_ENVIRONMENT variable for you as well.

ghost commented 7 years ago

That does the trick. I assumed incorrectly that dotnet run would be the sure fire way to run it.

MarkPieszak commented 7 years ago

Great! 👍 Since we need to run webpack first unfortunately we need those assets before all the other magic can start.