-
Notifications
You must be signed in to change notification settings - Fork 127
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
Error building with component containing optional chaining #106
Comments
it shouldnt be a problem. try to remove your node_modules and install them again. the same with parcel-bundler |
I have tried doing as you suggested:
But I am still getting the same error. |
I now see that the error is in js file (not ts) (ast-types\lib\types.js) - so typescript is not handling them. I thin you have to bump up your node version. |
I have updated my node version to |
i think that reactDocgen will have to be updated. It throws an error. And i dont use it since i am working mostly with typescript. I am just thinking: can you update it on your local version and see if that hepls? |
If I install |
Same error, will try to explicitly define |
Wiped and redownloaded |
@deepankarmalhan I just used the command |
This may not be strictly related to this library and may just be a dependency issue, but when I try to use the
@component
tag on a react component that contains optional chaining, I get an error aboutChainExpression
:Test react file to be processed:
jsdoc.json:
Error from running
jsdoc -c jsdoc.json
:After trying to track down where this issue was coming from I stumbled onto this:
benjamn/ast-types#383
Maybe this library would need to update its dependency on
@babel/core
to a newer version?The text was updated successfully, but these errors were encountered: