BettoRaite
DTDrizzle Team
•Created by Shayokh on 8/15/2024 in #help
⚠ Error - Top-level await is currently not supported with the "cjs" output format
Looks good
26 replies
DTDrizzle Team
•Created by Shayokh on 8/15/2024 in #help
⚠ Error - Top-level await is currently not supported with the "cjs" output format
And btw gimme a screen of TS config
26 replies
DTDrizzle Team
•Created by Shayokh on 8/15/2024 in #help
⚠ Error - Top-level await is currently not supported with the "cjs" output format
Try changing to es 2020
26 replies
DTDrizzle Team
•Created by Shayokh on 8/15/2024 in #help
⚠ Error - Top-level await is currently not supported with the "cjs" output format
There should a target option
26 replies
DTDrizzle Team
•Created by Shayokh on 8/15/2024 in #help
⚠ Error - Top-level await is currently not supported with the "cjs" output format
so you either change the ts config or wrap in IIFE
26 replies
DTDrizzle Team
•Created by Shayokh on 8/15/2024 in #help
⚠ Error - Top-level await is currently not supported with the "cjs" output format
same here
26 replies
DTDrizzle Team
•Created by Shayokh on 8/15/2024 in #help
⚠ Error - Top-level await is currently not supported with the "cjs" output format
You see your migration file uses the await in global context
possible fix wrap in Immediately Invoked Function Expressions (IIFE) in
26 replies
DTDrizzle Team
•Created by Shayokh on 8/15/2024 in #help
⚠ Error - Top-level await is currently not supported with the "cjs" output format
in common js module system you can't have await keyword in global context
26 replies
DTDrizzle Team
•Created by Shayokh on 8/15/2024 in #help
⚠ Error - Top-level await is currently not supported with the "cjs" output format
I think your ts config spits out cjs, that is why
26 replies