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
{{ message }}
This repository has been archived by the owner on Jan 26, 2020. It is now read-only.
support for react-native-web is done (same API, just import @roguejs/app/client.native and @roguejs/app/server.native) however, there's an issue with server-rendering critial css if you're using webpack (which most people are, specially since we recommend rogue with razzle) because it doesn't use require.cache when compiling to the Node.js target, instead it uses it's own installed modules cache which causes problems with singleton states if the code comes from multiple bundles
looks like the above is actually a separate issue, and the issue is we were importing react-native-web rather than react-native which I'm guessing result in two different runtimes
but when we import react-native, it causes an error likely becuase the babl plugin doesnt work with transpiled files
TypeError: (0 , _unstableNativeDependencies.injectEventPluginsByName) is not a function
alidcast
changed the title
webpack caching issues when importing react-native-web from multiple bundles
issues when importing react-native-web from multiple bundles
Dec 28, 2018
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
support for
react-native-web
is done (same API, just import@roguejs/app/client.native
and@roguejs/app/server.native
) however, there's an issue with server-rendering critial css if you're using webpack (which most people are, specially since we recommend rogue with razzle) because it doesn't userequire.cache
when compiling to the Node.js target, instead it uses it's own installed modules cache which causes problems with singleton states if the code comes from multiple bundlesthis issue was discovered with react-native-web/nextjs, for details see:
necolas/react-native-web#1079
https://spectrum.chat/next-js/general/singleton-issue-when-transpiling-local-modules~ba78d3a3-4ab3-48ef-9b77-956642dfbdb1?m=MTUzNjY3MTEzMDI0NQ==
for now, we'll recommend setting up programmatically. you can just look at
packages/app/native-web
to see how, but i'll also add it to the examplesThe text was updated successfully, but these errors were encountered: