-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Optional chaining issue #2024
Comments
This transform uses syntax which is only parseable by babel version 7. It’s still in beta, so we use version 6 for now. There’s a chance you can work it around by using webpack config full control mode with your own babel-loader. Please tell us if you have any success with that |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 60 days. Thanks! |
Hey there, it's me again! I am going close this issue to help our maintainers focus on the current development roadmap instead. If the issue mentioned is still a concern, please open a new ticket and mention this old one. Cheers and thanks for using Storybook! |
It is still actual, i wanna enable this via babel, but can't get it work with storybook |
@Hypnosphi any thoughts on this in 2020? 😅 |
@asmyshlyaev177 |
@Hypnosphi we use custom webpack config, as i see plugin didn't added to final webpack config. |
Hey,
I added a
.babelrc
to the.storybook
directory, installed babel-plugin-transform-optional-chaining, and added this to the.babelrc
.The above config is just lifted from the one in the storybook repo. I played around and experimented with a few different solutions but I couldn't get it to work. On each load it would see the use of
obj?.prop?.otherProp
and throwModule build failed: SyntaxError: Unexpected token
.package.json
I'm hoping it's something simple I'm missing as it would be a very useful feature for my current project. Thanks.
The text was updated successfully, but these errors were encountered: