Hello, I have encountered a problem. I am working with Visual Studio 2022 and have created two projects within one solution - one for the back-end (ASP.NET) and the other for the front-end (Vue.js and Vite). The issue arises when I use the npm create vue@3 command to create a Vue project. It launches fine, but when I try to do the same thing in the front-end folder of my solution project, Vite throws an error stating that it cannot find the index.html file.
Error: Failed to scan for dependencies from entries:
D:/Projects/C#/DAINIS/vueapp/index.html
X [ERROR] No loader is configured for ".html" files: index.html
<stdin>:1:7:
1 │ import "D:/Projects/C#/DAINIS/vueapp/index.html"
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
at failureErrorWithLog (D:\Projects\C#\DAINIS\vueapp\node_modules\esbuild\lib\main.js:1638:15)
at D:\Projects\C#\DAINIS\vueapp\node_modules\esbuild\lib\main.js:1050:25
at runOnEndCallbacks (D:\Projects\C#\DAINIS\vueapp\node_modules\esbuild\lib\main.js:1473:45)
at buildResponseToResult (D:\Projects\C#\DAINIS\vueapp\node_modules\esbuild\lib\main.js:1048:7)
at D:\Projects\C#\DAINIS\vueapp\node_modules\esbuild\lib\main.js:1060:9
at new Promise (<anonymous>)
at requestCallbacks.on-end (D:\Projects\C#\DAINIS\vueapp\node_modules\esbuild\lib\main.js:1059:54)
at handleRequest (D:\Projects\C#\DAINIS\vueapp\node_modules\esbuild\lib\main.js:725:19)
at handleIncomingPacket (D:\Projects\C#\DAINIS\vueapp\node_modules\esbuild\lib\main.js:747:7)
at Socket.readFromStdout (D:\Projects\C#\DAINIS\vueapp\node_modules\esbuild\lib\main.js:675:7)
Just to clarify, I have not made any changes to the project structure.
Here is the project structure
Example of the error dump
I have tried implementing solutions suggested on Stack Overflow here and here, but unfortunately, I have not been able to resolve the issue.