stereobooster / react-snap

👻 Zero-configuration framework-agnostic static prerendering for SPAs
MIT License
5.04k stars 391 forks source link

Does this work with react-native-web? #414

Open pcmaffey opened 4 years ago

pcmaffey commented 4 years ago

I'd expect react-snap to work fine with react-native-web, as it's simply rendering pages in a browser to create static html files before hydrating them. Has anyone gotten this to work?

After building I'm getting...

Uncaught TypeError: Cannot read property 'rules' of undefined
    at createOrderedCSSStyleSheet.js:49

Here's a repro: https://github.com/pcmaffey/rnw-snapshot

It's a create-react-app using react-native-web components. It runs react-snap postbuild. Works fine in dev, errors when running the build.

Can see the error live here: https://objective-bell-dff10b.netlify.com/

I'm guessing this is an issue with rnw, but wanted to check here to see if anyone has gotten this to work together.

jmahatpure01 commented 4 years ago

yes I have the same issue

alkhatera commented 1 year ago

anyone found the solution?