-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installing Storybook for Vue project throws "npm ERR! Cannot read properties of null (reading 'matches')" #18783
Comments
@CapedHero Do you face the same issue if you create the vue app using the command here https://vuejs.org/guide/quick-start.html#with-build-tools? I tried it with this command and storybook is getting installed correctly. I will try to reproduce with the vue CLI command in the meanwhile. |
I tried reproducing this on a Linux machine with the Vue cli command, but was not able to. Storybook got installed as expected and ran correctly.
I am wondering if it is possible that it's an issue with M1? As for the |
@Saunved, thank you for such a fast reply 👍
Hm, let's try: $ npm init vue@latest
Need to install the following packages:
create-vue@latest
Ok to proceed? (y) y
Vue.js - The Progressive JavaScript Framework
✔ Project name: … my-vue3-vite-app
✔ Add TypeScript? … No / Yes
✔ Add JSX Support? … No / Yes
✔ Add Vue Router for Single Page Application development? … No / Yes
✔ Add Pinia for state management? … No / Yes
✔ Add Vitest for Unit Testing? … No / Yes
✔ Add Cypress for End-to-End testing? … No / Yes
✔ Add ESLint for code quality? … No / Yes
✔ Add Prettier for code formatting? … No / Yes
$ cd my-vue3-vite-app
$ npm run dev
# The Vue app works with no errors.
$ npx sb init
$ npm run storybook
# ...and it worked! So what struck me now is that I used Also, I tried: $ npm init vue@latest
$ yarn install
$ npx storybook init
$ yarn storybook ...and it worked as well. I can only assume that Thanks again for your help! |
This looks like it might be a duplicate of #18111. |
Describe the bug
When following the documentation for Vue, I cannot successfully install Storybook. This problem occurs exactly the same for either Vue 2 or Vue 3.
To Reproduce
Funnily enough, when I try to reproduce the error with
npx sb@next repro
, a different problem occurs. So let's split the reproduction steps into two branches.How to reproduce the error manually
What's the result of trying to reproduce the error with
npx sb@next repro
?System
The text was updated successfully, but these errors were encountered: