-
Notifications
You must be signed in to change notification settings - Fork 0
capi & vite dev mode: Top-level await is not available #77
Comments
seems like the problem is in fact that Vite is not respecting the build target we set in the config the plugin you suggested is only for when you don't want to set
Capi seems to use pretty recent targets, it should support top level await. |
@statictype
|
Target: "ES2021" works fine as well. So it's seems you're right @statictype |
Pasting here a workaround from @tjjfvi just in case we need it in future
|
For
"capi": "0.1.0-beta.26"
there's an error afterpnpm run dev
Possible solutions:
fix in capi Top-level await is not available for vite dev mode capi#707The text was updated successfully, but these errors were encountered: