#Getting Error when trying to add testing library
37 messages · Page 1 of 1 (latest)
Reason: @mentioning people
Hey @dry hearth, I’m sorry that you’re having problems. However, please don’t at mention folks like that. We have people all around the world on the server so you’re potentially pinging people in the middle of the night
I’m just about to head to bed but I’ll have a look at how to help in the morning 🙂
I am very sorry for that, I have removed the mention as soon as i got warning
Good night, and thanks in advance for your help
It's okay 🙂 I get that it can be frustrating when you're stuck on the same error for a long time
i appreciate it too!
@dry hearth I have a feeling that this might be a clashing of versions here 🤔
What version of storybook are you using?
Thanks for understanding 🙂
This is my comment on github regarding this issue
Ah perfect 🙂 i thought that it might be but wanted to be sure
What package manager are you using? npm, yarn, pnpm?
perfect! can you run yarn why @storybook/client-logger and paste the results to me?
Please find in above image
Sorry can you paste the text? it's easier to look through
It’s not allowing in one go
You can find here
Found multiple versions of @stoybook/channel-postmessage
Which is also causing issue during build
ModuleDependencyError: export 'createChannel' (imported as 'createChannel') was not found in '@storybook/channel-postmessage' (possible exports: KEY, PostmsgTransport, default)
=======================
yarn why @storybook/channel-postmessage
yarn why v1.22.19
[1/4] 🤔 Why do we have the module "@storybook/channel-postmessage"...?
[2/4] 🚚 Initialising dependency graph...
[3/4] 🔍 Finding dependency...
[4/4] 🚡 Calculating file sizes...
=> Found "@storybook/[email protected]"
info Has been hoisted to "@storybook/channel-postmessage"
info Reasons this module exists
- Hoisted from "@storybook#builder-webpack5#@storybook#channel-postmessage"
- Hoisted from "@storybook#builder-webpack5#@storybook#archived-client-api#@storybook#channel-postmessage"
- Hoisted from "@storybook#manager-webpack5#@storybook#core-client#@storybook#channel-postmessage"
- Hoisted from "@storybook#builder-webpack5#@storybook#preview-web#@storybook#channel-postmessage"
- Hoisted from "@storybook#archived-react#@storybook#core#@storybook#core-server#@storybook#builder-webpack4#@storybook#channel-postmessage"
info Disk size without dependencies: "84KB"
info Disk size with unique dependencies: "13.75MB"
info Disk size with transitive dependencies: "19.86MB"
info Number of shared dependencies: 23
=> Found "@storybook/preview-api#@storybook/[email protected]"
info This module exists because "@storybook#instrumenter#@storybook#preview-api" depends on it.
info Disk size without dependencies: "36KB"
info Disk size with unique dependencies: "668KB"
info Disk size with transitive dependencies: "19.84MB"
info Number of shared dependencies: 24
✨ Done in 0.53s.
yeah, there is multiple versions of the logger too
I believe the testing library needs to be downgraded to a version that uses sb 6 or upgrade to sb 7 to solve the issue
Can you tell me which version of testing library will be compatible?
Looks like 0.0.13 is the version before moving to sb 7
https://github.com/storybookjs/testing-library/releases
that's fantastic to hear!! 🥳
🎉 amazing! I’m glad to hear that we got it figured out 🥳