Skip to content

fix: dynamically import createSnapshot #232

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ImLunaHey
Copy link
Contributor

@ImLunaHey ImLunaHey commented Jun 14, 2025

removes the need for a top level await. havent tested this but it's how we do things at work to avoid the same issue.

context:
this was output in the build step.

./src/app/backups/[id]/CreateSnapshotButton.tsx
The generated code contains 'async/await' because this module is using "topLevelAwait".
However, your target environment does not appear to support 'async/await'.
As a result, the code may not run as expected or may cause runtime errors.

@ImLunaHey
Copy link
Contributor Author

if this aint right please let me know. i havent used next + server side components in a fair while as i usually use vite + hono for my SSR stuff. 🤔

@travis travis requested a review from Peeja June 16, 2025 20:29
@travis
Copy link
Member

travis commented Jun 16, 2025

would love to get these errors quieted so I'm open to the approach here - @Peeja would love your eyes on this since I think you spent the most time thinking about this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants