7:05:36 PM [vite] Internal server error: Cannot use import statement outside a module
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1153:20)
at Module._compile (node:internal/modules/cjs/loader:1205:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
at Module.load (node:internal/modules/cjs/loader:1091:32)
at Module._load (node:internal/modules/cjs/loader:938:12)
at cjsLoader (node:internal/modules/esm/translators:284:17)
at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:234:7)
at ModuleJob.run (node:internal/modules/esm/module_job:217:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:316:24)
Screenshots
If applicable, add screenshots to help explain your problem.
Bug
Screenshots If applicable, add screenshots to help explain your problem.
Which versions of Sanity are you using?
What operating system are you using? macOS Sonoma 14.x.x
Which versions of Node.js / npm are you running? 10.2.5/v20.9.0
Additional context
vite.config.ts
tsconfig.json
package.json