Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using <spec path>/index.jsx doesn't work #1

Closed
mik01aj opened this issue Oct 29, 2015 · 3 comments
Closed

using <spec path>/index.jsx doesn't work #1

mik01aj opened this issue Oct 29, 2015 · 3 comments

Comments

@mik01aj
Copy link

mik01aj commented Oct 29, 2015

It's a bug in this line:

var componentPathToUse = componentPath ? componentPath : componentPathAlt;

CC @operatino

@robhrt7
Copy link
Member

robhrt7 commented Oct 29, 2015

Thanks for the report, I'll check it out. Was doing thus plugin in a rush for a demo.

@mik01aj
Copy link
Author

mik01aj commented Oct 29, 2015

Even after moving the file, the plugin still doesn't work:

image

This is the docgen output for my component:

{
  "description": "",
  "displayName": "Avatar",
  "props": {
    "user": {
      "type": {
        "name": "shape",
        "value": {
          "name": {
            "name": "string",
            "required": true
          }
        }
      },
      "required": false,
      "description": ""
    },
    "size": {
      "type": {
        "name": "number"
      },
      "required": false,
      "description": ""
    },
    "withTooltip": {
      "type": {
        "name": "bool"
      },
      "required": false,
      "description": ""
    },
    "style": {
      "type": {
        "name": "object"
      },
      "required": false,
      "description": ""
    }
  }
}

@robhrt7
Copy link
Member

robhrt7 commented Nov 5, 2015

Fixed in 0.2.0

@robhrt7 robhrt7 closed this as completed Nov 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants