Storybook não está funcionando
- Dominant language
- TypeScript
- Stars
- 16
- Forks
- 10
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
Tentei rodar o Storybook pelo yarn e deu ruim
**To Reproduce**
**Expected behavior**
A clear and concise description of what you expected to happen.
**Screenshots**
info => Starting manager..
✘ [ERROR] No matching export in "global-externals:@storybook/core-events" for import "IGNORED_EXCEPTION"
node_modules/@storybook/addon-interactions/dist/manager.js:6:91:
6 │ ...EXCEPTION, PLAY_FUNCTION_THREW_EXCEPTION, IGNORED_EXCEPTION, FORCE_REMOUNT } from '@storybook/core-ev...
╵ ~~~~~~~~~~~~~~~~~
SB_CORE-SERVER_0004 (NoMatchingExportError): There was an exports mismatch error when trying to build Storybook.
Please check whether the versions of your Storybook packages match whenever possible, as this might be the cause.
Problematic example:
{ "@storybook/react": "7.5.3", "@storybook/react-vite": "7.4.5", "storybook": "7.3.0" }
Correct example:
{ "@storybook/react": "7.5.3", "@storybook/react-vite": "7.5.3", "storybook": "7.5.3" }
Please run `npx storybook doctor` for guidance on how to fix this issue.
at buildOrThrow (./node_modules/@storybook/core-server/dist/index.js:24:7807)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async buildDevStandalone (./node_modules/@storybook/core-server/dist/index.js:66:1322)
at async withTelemetry (./node_modules/@storybook/core-server/dist/index.js:28:3579)
at async dev (./node_modules/@storybook/cli/dist/generate.js:669:563)
at async Command. (./node_modules/@storybook/cli/dist/generate.js:671:250)
**Desktop (please complete the following information):**
- OS: macOS
yarn storybook
yarn run v1.22.19
$ storybook dev -p 6006
@storybook/cli v8.0.8
Contributor guide
Research direction
Start with the `yarn storybook` entry point and inspect the installed Storybook packages implicated in `node_modules/@storybook/addon-interactions/dist/manager.js` and `node_modules/@storybook/core-server/dist/index.js`. Run `npx storybook doctor` to identify version mismatches; done means Storybook starts without the `NoMatchingExportError`.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100