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
Sample .glb file is loaded in the canvas without errors and app works.
Actual Behavior
Error: "ReferenceError: module is not defined" appears
Could only reproduce it with hydrogen apps/remix since using Vite.
With pure remix, react or nextJS app it's working fine.
ReferenceError: module is not defined
at C:/Users/max.mustermann/Projects/Example Shopify/hydrogen-quickstart-1/node_modules/@react-three/fiber/node_modules/react-reconciler/constants.js:6:3
at Object.runViteModule (Users/max.mustermann/Projects/Example Shopify/hydrogen-quickstart-1/node_modules/@shopify/mini-oxygen/dist/vite/worker-entry.js:1181:17)
at ViteRuntime.directRequest (Users/max.mustermann/Projects/Example Shopify/hydrogen-quickstart-1/node_modules/@shopify/mini-oxygen/dist/vite/worker-entry.js:1026:78)
at ViteRuntime.cachedRequest (Users/max.mustermann/Projects/Example Shopify/hydrogen-quickstart-1/node_modules/@shopify/mini-oxygen/dist/vite/worker-entry.js:949:28)
at request (Users/max.mustermann/Projects/Example Shopify/hydrogen-quickstart-1/node_modules/@shopify/mini-oxygen/dist/vite/worker-entry.js:976:128)
at /node_modules/@react-three/fiber/dist/index-ba8afaa4.esm.js?v=3cd111ea:3:31
at Object.runViteModule (Users/max.mustermann/Projects/Example Shopify/hydrogen-quickstart-1/node_modules/@shopify/mini-oxygen/dist/vite/worker-entry.js:1181:11)
at ViteRuntime.directRequest (Users/max.mustermann/Projects/Example Shopify/hydrogen-quickstart-1/node_modules/@shopify/mini-oxygen/dist/vite/worker-entry.js:1026:60)
at ViteRuntime.cachedRequest (Users/max.mustermann/Projects/Example Shopify/hydrogen-quickstart-1/node_modules/@shopify/mini-oxygen/dist/vite/worker-entry.js:950:79)
at /node_modules/@react-three/fiber/dist/react-three-fiber.esm.js?v=3cd111ea:1:110
What is the location of your example repository?
https://github.com/nhm1990/hydrogen-quickstart
Which package or tool is having this issue?
hydrogen-react
What version of that package or tool are you using?
2024.4.2
What version of Remix are you using?
2.8.0
Steps to Reproduce
Expected Behavior
Sample .glb file is loaded in the canvas without errors and app works.
Actual Behavior
Error: "ReferenceError: module is not defined" appears
Could only reproduce it with hydrogen apps/remix since using Vite.
With pure remix, react or nextJS app it's working fine.
Also with older versions it's not working.
Maybe related: facebook/react#20327
The text was updated successfully, but these errors were encountered: