Comments (2)
Hey 👋
This is a known issue (1, 2) when running on a worker environment such as MiniOxygen, which is what the oxygen()
plugin is adding.
So far, you need to add these CJS dependencies manually to your Vite config in the ssr.optimizeDeps.include
array.
We are soon releasing a tool to do this automatically: #2106
Hopefully at some point Vite itself will be able to discover these CJS dependencies for the server (right now it only does it for the browser because the server is normally Node.js).
from hydrogen.
ssr.optimizeDeps.include
did the trick. Thanks @frandiox!
from hydrogen.
Related Issues (20)
- getStorefrontApiUrl() is missing https protocol HOT 2
- Customizing CSP `frame-ancestors` still includes `'none'` HOT 3
- Invalid value for cartId HOT 1
- Quickstart dev fails with EPIPE error HOT 14
- Uncaught ReferenceError: global is not defined HOT 3
- Redeploying environment through Shopify fails to load SVGs HOT 3
- @shopify/hydrogen@latest vite version doesn't run due to ts-node error HOT 2
- Trailing slash redirects are not working as expected according to shopify docs HOT 3
- Analytics: product_added_to_cart event not recorded for some storefronts HOT 7
- Could not find ts-node, SyntaxError: Unexpected token HOT 3
- im having these issues while setting up local development on windows PC. HOT 6
- Client network socket disconnected before secure TLS connection was established HOT 1
- VariantSelector return isAvailable true for missed variants HOT 3
- Invalid CartID when add item to card
- Add fetchPriority type to Image component
- Vite renderToReadableStream error after upgrading cli-hydrogen from 7 to 8.0.4 HOT 1
- ReferenceError: "module is not defined" in Hydrogen/Remix Apps with new Vite when using @react-three/drei HOT 2
- Simplify & improve Shop Pay Button DX
- `cartQueryFragment` returns metafield-referenced product variants that are not in Hydrogen channel
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hydrogen.