-
Notifications
You must be signed in to change notification settings - Fork 324
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
[BUG] "document is not defined" when deploying to Oxygen #1882
Comments
I edited the description to include that I was able to deploy this successfully to Vercel servers. |
@sebinievas If you provide me with access, I can have a look at the code. Does a clean Hydrogen checkout work? |
This ended up being an issue with importing a package that was not SSR ready I believe. |
@sebinievas can you provide more details about the issue and how you determined it was a package? I'm fighting a similar issue and we use a lot of dependencies. |
@elkelk — We figured out this was a dependency mostly by just looking at some compilation errors we were having on Oxygen (running on a local instance) and looked through those issues on GitHub. We found others having the same sort of problem with the component rendered server-side. |
Describe the bug
When deploying to Oxygen, the following error occurs:
To Reproduce
Please contact me for access to private repo when working on issue. https://github.com/zoxllc/hydrogen-us
yarn preview
and it will load fine.Expected behaviour
A successful deployment to Oxygen.
Screenshots
Additional context
I was able to successfully deploy to Vercel servers so this prompted the issue.
"@shopify/cli": "3.3.2",
"@shopify/cli-hydrogen": "3.3.2"
"@shopify/hydrogen": "^1.1.0"
The text was updated successfully, but these errors were encountered: