Skip to content

Top-level await is not available (using inertia starter kit) #4476

Answered by Julien-R44
PauloPereira87 asked this question in Help
Discussion options

You must be logged in to vote

logs you see are produced by Vite. Look at what Vite is trying to compile: some backend/Adonis code.
So you are importing Adonis code into your frontend. That means you will bundle your backend with your frontend. I guess this is not what you want.

If you're importing Adonis code into your frontend, I guess it's probably to share some typing. In this case, don't forget to use import type rather than import

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@salman3001
Comment options

Answer selected by PauloPereira87
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants