Skip to content
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

fix: guard asset global usage #11171

Merged
merged 2 commits into from
May 31, 2024
Merged

fix: guard asset global usage #11171

merged 2 commits into from
May 31, 2024

Conversation

Princesseuh
Copy link
Member

Changes

The global is never supposed to be undefined here, but in some cases where you use code intended for the server on the client, or in some weird setups it can be. This doesn't really fix the issue, because well, you're still using the wrong code at the wrong place, but at least it won't fail on this cryptic error.

Does not exactly fix, but in my opinion, closes #11042

Testing

Tested manually

Docs

N/A

Copy link

changeset-bot bot commented May 31, 2024

🦋 Changeset detected

Latest commit: e875b41

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the pkg: astro Related to the core `astro` package (scope) label May 31, 2024
@Princesseuh Princesseuh changed the title fix: guard global usage fix: guard asset global usage May 31, 2024
@Princesseuh Princesseuh merged commit ff8004f into main May 31, 2024
13 checks passed
@Princesseuh Princesseuh deleted the fix/global-asset-client branch May 31, 2024 13:35
@astrobot-houston astrobot-houston mentioned this pull request May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: astro Related to the core `astro` package (scope)
Projects
None yet
2 participants