-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Build fails with JSDocs tags in Component docs. (webpack 2, styleguide 5 beta) #298
Comments
Maybe not 5.x specific be definitely a bug, I‘ll try to debug and fix it (but feel free to submit a pull request if you have time and will to fix it). |
I found a reason of this error but not sure about the right way to fix that.
Of course we can find a workaround that (read “hack”) but probably one of these libraries should be fixed instead. |
I’ve created an issue at react-docgen: reactjs/react-docgen#155 |
Thanks for investigating. I think it was right to ask why they do that. Would be nice that they fix it if there is no good reason. |
@AoDev could you please take a look and check if my fix worked for you? |
@n1313 Thanks! I'll check a bit later. On my side I made a micro PR in react-docgen. |
@n1313 Is it possible to release a '5.0.0-beta.11' with the fix included? this way it would be easier to test. I have tried to install by using the next branch (
|
@AoDev It must be because Babel compilation is needed. I’ll try to make a new beta tomorrow. |
@sapegin How would be the easiest way for me to pull the project and try it locally? if I were to clone the repo in the node-modules of my project and generate the dist, would it work? |
@AoDev Yeah, that would be the easiest way. Clone and then do |
@sapegin @n1313 I just tried by pulling the repo and compiling like sapegin said. It compiled and your fix works. At least for the small I don't know what is the expected output but currently it is stripped out from the documentation. I'd rather have them in, unless you plan to render jsDocs tags in some way later. Thank you both and I'll wait for the new beta :) |
Maybe we should add a config option to define renderers for unknown (to Styleguidist) tags. Not sure it‘s a good idea to render everything ;-) But it‘s better to open another issue to discuss it. |
I was thinking of adding some support for |
I have three kinds of value:
|
@AoDev Thanks! I'm closing this issue and will ping you when I'm ready to start on adding support for |
Not sure I would close the issue. Sure, the fix seems to work but it's not available to people yet. I'd rather close an issue when it's available. I have not tried in v4. Only v5 beta so I don't know if v4 was affected. |
It’d 5.x only issue, we don’t use |
Cool, thanks:) |
Environment:
The build breaks because of JSDocs tags.
We have updated to Webpack 2 and after checking this issue: #292 I have decided to go with the v5 beta.
I consistently manage to reproduce the build error with
@see
and@module
JSDocs tags. I haven't tried other tags. We had an @see that I have temporarily removed from our code to get it to work. I don't know if it's style guide V5 specific.Example:
Pagination.js
Error thrown:
The text was updated successfully, but these errors were encountered: