[Bug] Storybook 7 Vue migration: Cannot find module '@storybook/core/server'
Opened this issue · 4 comments
Describe the bug
After running the migration cli wizard npx sb upgrade
Steps to reproduce the behavior
- Go to your project root folder (that runs storybook 6.5)
- Run the migration commend
npx sb upgrade
- Answer the questions accordingly to your project
- Run the serve and see the error
Error: Cannot find module '@storybook/core/server'
Expected behavior
To run the server properly
Screenshots and/or logs
I found a similar issue and a PR to fix the same (or very close to) issue for version 6.5
#128
Environment
- OS: ARM M1 silicon
- Node.js version: v16.17.1
- NPM version: 8.15.0
Additional context
Can you please start over and try running npx sb@latest upgrade
? npx is notorious for using cached versions, which can cause lots of problems for Storybook.
I also tried to migrate using Storybook's auto migration tool and encountered this issue:
➜ yarn storybook
yarn run v1.22.19
$ vue-cli-service storybook:serve -p 6006 -c config/storybook
ERROR TypeError: server.buildDev is not a function
TypeError: server.buildDev is not a function
at /Users/xxx/Workspace/xxx/node_modules/vue-cli-plugin-storybook/lib/index.js:42:12
at Service.run (/Users/xxx/Workspace/xxx/node_modules/@vue/cli-service/lib/Service.js:262:12)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
@sybers that sounds like a different issue. Could you please open a new issue (ideally with a reproduction), and mention me on it so I see it?
But if I had to guess, I'd say vue-cli-plugin-storybook
might not be compatible with 7.0. I would start there by checking that.
doh, I didn't realize this was the repo for the plugin. 😵