Skip to content
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

Remove optional chaining #52

Merged
merged 1 commit into from
Mar 23, 2023
Merged

Remove optional chaining #52

merged 1 commit into from
Mar 23, 2023

Conversation

filipw01
Copy link
Contributor

Closes #48

You can test by changing

.storybook/main.js

-  core: {
-    builder: "webpack5",
-  },

package.json

-    "build:storybook": "build-storybook",
+    "build:storybook": "NODE_OPTIONS=--openssl-legacy-provider build-storybook",

I'm definitely for changing it back to optional chaining in 2.0

@filipw01
Copy link
Contributor Author

Just to give more context, this happens because webpack 4 doesn't support optional chaining. The workaround is to use webpack 5 or vite builder or upgrade to storybook 7 (currently in beta)

Copy link
Contributor

@JonathanKolnik JonathanKolnik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your PR, looks good to me!

YellowKirby pushed a commit to YellowKirby/storybook-addon-pseudo-states that referenced this pull request Mar 8, 2023
@riotrah
Copy link

riotrah commented Mar 22, 2023

@JonathanKolnik Can this please be merged?

@ghengeveld ghengeveld added the patch Increment the patch version when merged label Mar 23, 2023
@ghengeveld ghengeveld merged commit 44f82ca into chromaui:main Mar 23, 2023
@github-actions github-actions bot added the released This issue/pull request has been released. label Mar 23, 2023
@JonathanKolnik
Copy link
Contributor

@riotrah sorry for the delay, @ghengeveld to the rescue! Thanks again everyone 😄

@github-actions
Copy link

github-actions bot commented Apr 3, 2023

🚀 PR was released in v2.0.0-next.2 🚀

@github-actions github-actions bot added the prerelease This change is available in a prerelease. label Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Increment the patch version when merged prerelease This change is available in a prerelease. released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Optional chaining error in 1.15.2
4 participants