-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Error: Cannot find module 'react-docgen/dist/babylon' #727
Comments
Yeah, but we don't have this handler anymore inside the |
https://github.com/pedronauck/docz/blob/master/core/docz-core/package.json This is the dependencies of newest docz-core@1.0.0-rc.7 |
I'm getting the same error, have you some tips about how to fix it? |
Not yet. Unless the latest |
The only way I found is downgrading to rc.2 with fixing all transitive dependencies with yarn:
Then deleting usage of react-docgen-external-proptypes-handler with
Downgrade was needed since routing is completely broken in rc.7 |
This should be fixed in the newest |
I started a new docz project and installed
However, for my old docz project, I tried to install the newest I wonder if the handler is not the only source of the problem |
On your old docz project, try to reinstall your |
@pedronauck yes, I did remove |
@pedronauck the problem is that you use |
@pedronauck the docz-core@1.0.0-rc.8 still rely on the |
|
This is not an issue with this library. The error you are getting is getting squashed by this.
This try catch squashes your error... My error is this
Setting up the docz with CRA I was able to see the difference and it is that my node_modules docz does not have its own copy of @babel/core and is not able find the file name for something... its not in the options that get passed in... So... I still don't know what is wrong but it is probably with my setup. |
1.0.4 still has this issue |
The issue of this library that it using broken packages. Bless
I'd be happy to help out solving this issue, though I need some guidance from authors. |
Has solved this problem by publishing a patch version for react-docgen? |
@ronghang No, I just use |
v1.2.0 still exist |
see the issue for details on the typos fixed closes issue #727
made this to fix: #866 |
see the issue for details on the typos fixed closes issue #727
Has the fix been published yet? Still getting this error in 1.2.0 (which is the default version being installed) |
not that i know of. sorry :( but still clsoing this issue in meantime since its fixed but just not published yet. cc @pedronauck |
Just a thought, y'all might want to add an integration test to catch these kind of things. |
this issue still exists for me @^1.2.0 so not sure why this is closed |
the fix is merged, but not published yet. fyi @pedronauck |
any updates or any workaround pleaaase ! @pedronauck |
@hamed-farag I created a workaround by just commenting out |
The publication of release has been a bit slow recently. |
yep. i've pinged pedro again. its his project 🤷🏼♂️ |
I am having the same error as a few users:
This is with a basic setup. Ian |
doesnt seem like the same issue. |
@sw-yx I figured it was relevant and didn't want to create a different issue for it to be shut down and pointed to this.
|
Am still waiting for the new release :( |
yea i've prodded @pedronauck a couple times already. he's juggling a bunch of stuff it seems. not much i can do. |
Bug Report
Describe the bug
Update to docz 1.0.0-rc.3
when run docz dev,an error has occurred.
A clear and concise description of what the bug is.
I check the
react-docgen-external-proptypes-handler
source code,i found it uses a file that does not exist in try catch.'react-docgen/dist/babylon'
does not exist in thereact-docgen-external-proptypes-handler
.The text was updated successfully, but these errors were encountered: