TS config compilerOptions

Hi all I'm facing an error while migrating my Vue 3 SSR project to Nuxt 3 ERROR: Top-level await is not available in the configured target environment My ts config file
{
"extends": "./.nuxt/tsconfig.json",
"compilerOptions": {
"target": "ESnext",
"module": "ESnext",
},
// ... everything else
}
{
"extends": "./.nuxt/tsconfig.json",
"compilerOptions": {
"target": "ESnext",
"module": "ESnext",
},
// ... everything else
}
Am I missing something? Thanks
2 Replies
Victor Neves
Victor NevesOP10mo ago
Found the issue It has to be set on vite settings at nuxt config 😅
Gawel91
Gawel914mo ago
Hey sorry what is your config exactly? I tried putting it on vite settings and I still get the error
Want results from more Discord servers?
Add your server