-
Notifications
You must be signed in to change notification settings - Fork 257
Closed
Labels
staleThere is no activity for a long time.There is no activity for a long time.
Description
I'm getting an issue where I installed react-docgen-typescript with yarn and attempt to call it like such
const tsParser = require("react-docgen-typescript");
// Some code
var propTypes = tsParser.parse("./componentToParse.tsx");
console.log(propTypes[0].props);
and end up getting this error
TypeError: Cannot read property 'props' of undefined
Has anyone seen this before and do you have any ideas what could be happening? The weird thing is, if I operate within a fork of the react-docgen-typescript repo I'm totally fine. It only seems to be failing when I try and install it as a dependency in another project.
narayananramu, mandymichael, ZhuravlevaS and gsavchenko
Metadata
Metadata
Assignees
Labels
staleThere is no activity for a long time.There is no activity for a long time.