You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The plugin "externalize-deps" was triggered by this import
vite.config.js:3:23:
3 │ import ViteDotNet from "vite-dotnet";
╵ ~~~~~~~~~~~~~
failed to load config from C:\Dev\Personal\TailwiseTest\ClientApp\vite.config.js
error when starting dev server:
Error: Build failed with 1 error:
node_modules/esbuild/lib/main.js:1373:27: ERROR: [plugin: externalize-deps] Failed to resolve "vite-dotnet". This package is ESM only but it was tried to load by 'require'. See http://vitejs.dev/guide/troubleshooting.html#this-package-is-esm-only for more details.
at failureErrorWithLog (C:\Dev\Personal\TailwiseTest\ClientApp\node_modules\esbuild\lib\main.js:1649:15)
at C:\Dev\Personal\TailwiseTest\ClientApp\node_modules\esbuild\lib\main.js:1058:25
at runOnEndCallbacks (C:\Dev\Personal\TailwiseTest\ClientApp\node_modules\esbuild\lib\main.js:1484:45)
at buildResponseToResult (C:\Dev\Personal\TailwiseTest\ClientApp\node_modules\esbuild\lib\main.js:1056:7)
at C:\Dev\Personal\TailwiseTest\ClientApp\node_modules\esbuild\lib\main.js:1085:16
at responseCallbacks.<computed> (C:\Dev\Personal\TailwiseTest\ClientApp\node_modules\esbuild\lib\main.js:703:9)
at handleIncomingPacket (C:\Dev\Personal\TailwiseTest\ClientApp\node_modules\esbuild\lib\main.js:762:9)
at Socket.readFromStdout (C:\Dev\Personal\TailwiseTest\ClientApp\node_modules\esbuild\lib\main.js:679:7)
at Socket.emit (node:events:514:28)
at addChunk (node:internal/streams/readable:376:12)
I may be doing something wrong, but I just don't see what is that I am doing wrong.
I can't get to work this package. When I try to run the app after following the guide at https://vite-dotnet.techgems.net/guide/getting-started console outputs:
I may be doing something wrong, but I just don't see what is that I am doing wrong.
My vite.config.js is:
The text was updated successfully, but these errors were encountered: