storybook icon indicating copy to clipboard operation
storybook copied to clipboard

Cannot read properties of undefined (reading 'isBatchingLegacy')

Open jonsoku-dev opened this issue 2 years ago • 15 comments

Describe the bug A clear and concise description of what the bug is. occurred error, when installed@emotion/styled and @emotion/react repo: https://github.com/jonsoku2/turbo-tsdx-emotion-storybook

To Reproduce Please create a reproduction by running npx sb@next repro and following the instructions. Read our documentation to learn more about creating reproductions. Paste your repository and deployed reproduction here. We prioritize issues with reproductions over those without.

System Please paste the results of npx sb@next info here.

Environment Info:

System: OS: macOS 12.2 CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz Binaries: Node: 16.15.0 - ~/.nvm/versions/node/v16.15.0/bin/node Yarn: 1.22.18 - /usr/local/bin/yarn npm: 8.5.5 - ~/.nvm/versions/node/v16.15.0/bin/npm Browsers: Chrome: 101.0.4951.64 Safari: 15.3 npmPackages: @storybook/addon-actions: ^6.4.22 => 6.4.22 @storybook/addon-docs: ^6.4.22 => 6.4.22 @storybook/addon-essentials: ^6.4.22 => 6.4.22 @storybook/addon-info: ^5.3.21 => 5.3.21 @storybook/addon-interactions: ^6.4.22 => 6.4.22 @storybook/addon-links: ^6.4.22 => 6.4.22 @storybook/builder-webpack5: ^6.4.22 => 6.4.22 @storybook/manager-webpack5: ^6.4.22 => 6.4.22 @storybook/react: ^6.4.22 => 6.4.22

Additional context Add any other context about the problem here. image

Please help me...

jonsoku-dev avatar May 17 '22 04:05 jonsoku-dev

Same problem here

hyochan avatar Jun 28 '22 10:06 hyochan

Same here

lauthieb avatar Jun 28 '22 21:06 lauthieb

same problem here

RebeccaWangCM avatar Jun 29 '22 22:06 RebeccaWangCM

Same

DannyClaydenChambers avatar Jul 11 '22 12:07 DannyClaydenChambers

same

Same problem here

boatnoodle avatar Jul 18 '22 10:07 boatnoodle

Same problem here

CIDBerlin avatar Jul 26 '22 09:07 CIDBerlin

same

pakholeung37 avatar Jul 28 '22 06:07 pakholeung37

Maybe it's not a storybook bug. I found out I have React 16.8 and react-dom 18.2 installed

pakholeung37 avatar Jul 29 '22 03:07 pakholeung37

same

adiusz avatar Jul 29 '22 08:07 adiusz

same

wavinginspace avatar Aug 08 '22 18:08 wavinginspace

I've encountered this issue while upgrading to ^7.0.0-alpha.23. It seems that the Storyshots add-on is throwing the error.

mmmpop avatar Aug 18 '22 15:08 mmmpop

same issue

YoanDo avatar Sep 23 '22 08:09 YoanDo

same here

alanmatiasdev avatar Oct 10 '22 20:10 alanmatiasdev

I ended up going back to [email protected] and the tests worked for me. This is what my dependencies look like now:

  "dependencies": {
    "expo": "44.0.0",
    "expo-linear-gradient": "11.0.3",
    "expo-status-bar": "1.2.0",
    "jest": "29.1.2",
    "react": "17.0.1",
    "react-dom": "17.0.1",
    "react-native": "0.64.3",
    "react-native-web": "0.17.1",
    "react-test-renderer": "16.14.0"
  },
  "devDependencies": {
    "@babel/core": "^7.12.9"
  },

mynameisgenesis avatar Oct 11 '22 20:10 mynameisgenesis

This is fixed in storybook 7.0 beta.

ndelangen avatar Feb 06 '23 17:02 ndelangen