8000 fix(app): import user code last to avoid initialization order issues by pi0 · Pull Request #3226 · nitrojs/nitro · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix(app): import user code last to avoid initialization order issues #3226

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

Merged
merged 1 commit into from
Mar 17, 2025

Conversation

pi0
Copy link
Member
@pi0 pi0 commented Mar 17, 2025

resolves #3225

If user code is not imported last, nitro app entry can partially import it's internals that will be added first to the rollup entry but won't be available until after user code.

This can cause issues like Error: Cannot access ... before initialization

Copy link
cloudflare-workers-and-pages bot commented Mar 17, 2025

Deploying nitrojs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 0d31040
Status: ✅  Deploy successful!
Preview URL: https://4ca088b2.nitrojs.pages.dev
Branch Preview URL: https://fix-app-order.nitrojs.pages.dev

View logs

@pi0 pi0 merged commit dcbf309 into v3 Mar 17, 2025
5 checks passed
@pi0 pi0 deleted the fix/app-order branch March 17, 2025 11:56
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.

Error: Cannot access 'Hasher' before initialization
1 participant
0