Closed Webcoda closed 1 year ago
Hello, do you have a minimal repro project? to track the problem faster.
Hi @Eptagone thanks for responding
Here is a minimal repro project: https://github.com/Webcoda/test-viteaspnetcore18
you might need to
pnpm install
on FE_DEV folderdotnet build && dotnet run
on UmbracoCMS\Hi @Webcoda, thanks. I'll take a look.
@Eptagone I think I might have found the way to fix it.
I put the app.UseViteDevMiddleware() after app.UseUmbraco() and it works ok now
Hi, I see. So, it's just an issue with the order of the middlewares. Something similar happened with another issue (#12)
Yes, I believe so. I need to put the app.UseViteDevMiddleWare() after app.UseUmbraco() if I use v1.8.0 and before app.UseUmbraco() for version v1.6.2
When I use version 1.8.0, I can't load the dotnet application anymore (I'm using Umbraco)
Using v1.6.2 and below can load the dotnet application and run vite dev server at the same time. Not sure what happened on v1.8.0.
I skipped v1.7 because it doesn't allow me to set
WorkingDirectory
(on v1.6.2 and below) orPackageDirectory
on v1.8.Could you please help?
Logs on v1.6.2
Logs on v1.8