You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1/ Run npm create @shopify/hydrogen@latest -- --template demo-store
2/ Install @sentry-remix: 'npm run @sentry/remix'
3/ Add sentry related code to enable sentry in root.tsx, entry.server.tsx, entry.client.tsx
4/ Link project to a storefront and run npx hydrogen deploy
5/ -> Deployment Error
Expected Result
To have a succesfull deployment
Since the worker is built on Oxygen (which is built on Cloudlfare) maybe there is some missing functionnality ???
However the problem is that when I was on Remix Classic Compiler (not using Vite) it was working fine!!
Actual Result
Error:
The text was updated successfully, but these errors were encountered:
Hello, thanks for filing this issue! Does this project run locally without problems or do you get an error as well? And did you deploy it somewhere else (not oxygen) already successfully?
Can you try turning on logs with debug: true to see if there is some output that could be helpful?
@s1gr1d Yes the project runs locally without problems. I didn't deployed it somewhere else.
The sentry debug: true is kinda useless in this case because the error doesn't occurs when the project is running but it seems it's when oxygen tries to start it or something like that.
Sentry's Remix SDK does not officially support adapters that use non-Node runtimes, such as Cloudflare Workers.
Therefore the Remix SDK does not officially support non-Node.js runtimes for the server. You'll have to remove all Sentry related code from entry.server.tsx for the time being.
We are actively working on a Cloudflare Worker SDK #12620 which should make this better!
This is being tracked with #5610 - so I am going to close this issue.
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/remix
SDK Version
^8.20.0
Framework Version
Remix ^2.4.1
Link to Sentry event
No response
SDK Setup/Reproduction Example
Steps to Reproduce
1/ Run
npm create @shopify/hydrogen@latest -- --template demo-store
2/ Install @sentry-remix: 'npm run @sentry/remix'
3/ Add sentry related code to enable sentry in root.tsx, entry.server.tsx, entry.client.tsx
4/ Link project to a storefront and run
npx hydrogen deploy
5/ -> Deployment Error
Expected Result
To have a succesfull deployment
Since the worker is built on Oxygen (which is built on Cloudlfare) maybe there is some missing functionnality ???
However the problem is that when I was on Remix Classic Compiler (not using Vite) it was working fine!!
Actual Result
Error:
The text was updated successfully, but these errors were encountered: