.Net Core x Vue x Angular - Blog Ep.2 - Vue & Webpack

preview_player
Показать описание


Рекомендации по теме
Комментарии
Автор

Hi Antone,

greetings again,

thanks for the new piece of art, these series you are making are benefiting lots of guys allover the world.
my question is :

as useWebpackDevMiddleware is removed is core 5 I'm using spastaticfiles and here's the added code to the startup.cs

ConfigureServices method

=>
{
config.RootPath = "vue-app";
});


Configure method
app.UseStaticFiles();

app.UseSpa(spa =>
{
if (env.IsDevelopment())
{
spa.Options.SourcePath = "vue-app/";
spa.UseVueCli(npmScript: "serve");
}
else
spa.Options.SourcePath = "dist";

// name: "default",
// pattern:

});

app now throws an error saying
(The NPM script 'serve' exited without indicating that the server was listening for requests. The error output was: node: bad option: --port

any clue, cause there's no much documentations regarding the migration from old spa library !!!

Regards

michaelnabilsamy
Автор

Thanks for the wonderful tutorial. Are you also planning to have .net and Angular tutorial?

yongseo
Автор

Hey man! Hope you're safe and well during the lockdown. Haven't been to the stream in a while - hopefully I will be free for the next one. I am having issues with this webpack dev middleware. I was wondering if you knew whether this just isn't going to work now as it is obsolete or? Any help is greatly appreciated

fadge
Автор

I install the web-pack package but I have an error when I add " in startup.cs

onemorestory