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
When no name is specified in mdx file, it throws Cannot read property 'name' of undefined #59
Comments
@pedronauck I would like to take this up.The solution I am thinking here is throwing an error with the message of $path/to/file.mdx does not contain a name. |
@pedronauck While trying to do a yarn commit I am facing this error
|
@pedronauck Can you help here in this yarn commit issue that I am facing. |
Do you trying to build packages to make some pull request @vivek12345? Which version of node you're using? |
Node version is v9.0.0 @pedronauck
|
@pedronauck any suggestions as to what I can do to commit my change and make a PR for the same. |
what commands are you using to build and then commit @vivek12345 ? |
@marceloavf I did those above mentioned changes inside Finally I see this error all the time
|
@vivek12345 Seems to be some issue with this path. For now, try to commit normally with If you could please say your Operational System too, should help us find what is happening. |
Sure I will try as you suggested. |
Thank you @marceloavf for your help. I have raised a PR for the same. |
🎉 Fixed and released in the new v0.4.0 |
Bug Report
To Reproduce
Create an MDX file with no name specified.
It will generate the error:
Expected behavior
Provide a helpful error message that $path/to/file.mdx does not contain a name.
It probably occurs at this line but couldn't find out how to run docz without using the
dist
version to validate:https://github.com/pedronauck/docz/blob/master/packages/docz-core/src/Entry.ts#L98
The text was updated successfully, but these errors were encountered: