docz-plugin-react-native icon indicating copy to clipboard operation
docz-plugin-react-native copied to clipboard

Example not working

Open franklinjavier opened this issue 7 years ago • 3 comments

Trying to run example folder, following the instructions from readme, but got this error

image

franklinjavier avatar Sep 13 '18 02:09 franklinjavier

react-native-web@^0.8 isn't compatible with react-native@^16.5, but it's already fixed: necolas/react-native-web@506dba9

That fix was released on version 0.9.0 of react-native-web: https://github.com/necolas/react-native-web/releases/tag/0.9.0

While docz-plugin-react-native isn't updated, you can put this on your package.json and run yarn install to force the correct version:

  "resolutions": {
    "docz-plugin-react-native/react-native-web": "^0.9.0"
  }

fhelwanger avatar Sep 24 '18 16:09 fhelwanger

I have the following error when I go to each components page.

Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports. Check the render method of `o`.

yo7 avatar Oct 06 '18 16:10 yo7

@pedronauck I'm experiencing the same issue as @yo7.

Steps taken:

  1. Clone repo
  2. cd to example folder
  3. yarn install
  4. yarn dev
  5. Click on Alert or Button component

screencapture-localhost-3000-src-components-button-2018-10-13-23_31_38

Btw, your generated docs are very well designed. Such a pleasure to look at it. I love the attention to detail!

zeckdude avatar Oct 14 '18 06:10 zeckdude