cargo create-tauri-app --alpha
✔ Project name · charge-spy
✔ Choose which language to use for your frontend · TypeScript / JavaScript - (pnpm, yarn, npm)
✔ Choose your package manager · pnpm
✔ Choose your UI template · Solid - (https://www.solidjs.com/)
✔ Choose your UI flavor · TypeScript
✔ Would you like to setup the project for mobile as well? · yes
pnpm tauri dev
> charge-spy@0.0.0 tauri C:\Users\acoop\Documents\GitHub\ChargeSpy
> tauri "dev"
Running BeforeDevCommand (`pnpm dev`)
> charge-spy@0.0.0 dev C:\Users\acoop\Documents\GitHub\ChargeSpy
> vite
X [ERROR] Top-level await is currently not supported with the "cjs" output format
vite.config.ts:25:18:
25 │ host: await internalIpV4(),
╵ ~~~~~
failed to load config from C:\Users\acoop\Documents\GitHub\ChargeSpy\vite.config.ts
ild\lib\main.js:756:9)
at Socket.readFromStdout (C:\Users\acoop\Documents\GitHub\ChargeSpy\node_modules\.pnpm\esbuild@0.16.17\node_modules\esbuild\lib\main.js:677:7)
at Socket.emit (node:events:513:28) at addChunk (node:internal/streams/readable:324:12)
ELIFECYCLE Command failed with exit code 1. Error The "beforeDevCommand" terminated with a non-zero status code.
ELIFECYCLE Command failed with exit code 1.PS C:\Users\acoop\Documents\GitHub\ChargeSpy>