feerglas/storybook-addon-breakpoints

[Update] Storybook 7

Opened this issue · 4 comments

Hello there :)
any news about updating to Storybook 7?

Hi,
I was wondering if there have been any updates regarding issue

I opened a PR but I assume it will never be merged.
#16

I had to perform the following to get past incompatibility issues with using Storybook 7 and npm 8.3.0:

package.json

  "overrides": {
    "storybook-addon-breakpoints": {
      "@storybook/components": "7.0.18",
      "react": "$react",
      "react-dom": "$react-dom"
    }
  },

"$react" being our current version of react ($ = reference)

Otherwise you can enable the flag legacy-peer-deps=true in a project-level .npmrc file, but I wouldn't recommend this approach.

Doesn't work with storybook 8