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
When I run yarn docz dev, I'm seeing a series of WEBPACK "Generating SSR bundle failed..." errors. This only happens when .mdx files are created with components that use React Native Elements components.
After running yarn docz dev, many errors are displayed that look similar to these:
onCreateWebpackConfig in gatsby-node.js needed to be configured to exclude all node_modules from transpilation, except for 'react-native-elements', 'react-native-ratings', and 'react-native-vector-icons', as these modules have jsx logic in .js files:
Docz uses react-native-web library. The most recent version of this library, 0.12.2 is not compatible with ViewPropTypes type, which React Native Elements uses in many of its components. See this related github thread for another example.
Solution here is to downgrade react-native-web library to v0.11.7
Bug Report
When I run
yarn docz dev
, I'm seeing a series of WEBPACK "Generating SSR bundle failed..." errors. This only happens when.mdx
files are created with components that use React Native Elements components.After running
yarn docz dev
, many errors are displayed that look similar to these:I have tried
gatsby clean
rm -rf node_modules
-->yarn install
.docz
directory and regenerating the.docz
directory whenyarn docz dev
is runTo Reproduce
.mdx
file for component that uses React Native Elementsyarn docz dev
Expected behavior
Docz should successfully parse components and run.
Environment
The text was updated successfully, but these errors were encountered: