-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Cannot access 'SITE_TITLE' before initialization during build in 2.0.0-beta.0 #5754
Comments
Sorry for the vague issue and weird repro. It's taken hours to extract enough to create the repro so I need a break before trying to simplify it more. Code getting bundled in the wrong order? |
Does this happen in 1.x? |
No, works fine in 1.9.0. |
Just FYI @matthewp this looks like something related to the way our intermediate (server) bundle is generated before the pages are statically rendered. You can see this in the reproduction by inspecting the files in the I suspect this would happen on |
Can confirm 1.9.0 breaks with |
Thanks for your patience, I'm looking into this one again today. Will be sure to share progress updates. |
I was able to determine what bundling change causes this, but I'm still unsure of the correct way to split each page into a chunk without hitting this issue. That being said, per-page splitting is purely cosmetic. If we emit a single chunk, this is no longer an issue. |
What version of
astro
are you using?2.0.0-beta.0
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
npm
What operating system are you using?
Linux
Describe the Bug
Getting the following error when building (not dev) using 2.0.0-beta.0. Works fine in 1.9.0.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-zea7ll
Participation
The text was updated successfully, but these errors were encountered: