Skip to content
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

【Vuetify】TypeError: Cannot read property 'styles' of undefined #18884

Open
codthing opened this issue Aug 8, 2022 · 2 comments
Open

【Vuetify】TypeError: Cannot read property 'styles' of undefined #18884

codthing opened this issue Aug 8, 2022 · 2 comments

Comments

@codthing
Copy link

codthing commented Aug 8, 2022

Describe the bug

yarn storybook report an error:

ModuleBuildError: Module build failed (from ./node_modules/vue-loader/dist/index.js):
TypeError: Cannot read property 'styles' of undefined

To Reproduce

https://github.com/codthing-bug/vuetify-sb-setupbug.git

System

Environment Info:

  System:
    OS: Windows 10 10.0.22000
    CPU: (12) x64 Intel(R) Core(TM) i5-10500 CPU @ 3.10GHz
  Binaries:
    Node: 14.18.3 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 6.14.15 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.22000.120.0), Chromium (104.0.1293.47)
  npmPackages:
    @storybook/addon-actions: ^6.5.10 => 6.5.10
    @storybook/addon-essentials: ^6.5.10 => 6.5.10
    @storybook/addon-interactions: ^6.5.10 => 6.5.10
    @storybook/addon-links: ^6.5.10 => 6.5.10
    @storybook/builder-webpack5: ^6.5.10 => 6.5.10
    @storybook/manager-webpack5: ^6.5.10 => 6.5.10
    @storybook/testing-library: ^0.0.13 => 0.0.13
    @storybook/vue: ^6.5.10 => 6.5.10

Additional context

@fazulk
Copy link
Contributor

fazulk commented Sep 9, 2022

Also experiencing this on 6.5.10 with vue2, works fine in 6.5.9. Not using vuetify in this repo.

This was a problem with vue-loader dependency mismatch for me.

I needed to add this to my package.json (using vue2)

 "resolutions": {
    "vue-loader": "^15.10.0"
  }

@codthing
Copy link
Author

codthing commented Sep 9, 2022

Also experiencing this on 6.5.10 with vue2, works fine in 6.5.9. Not using vuetify in this repo.

This was a problem with vue-loader dependency mismatch for me.

I needed to add this to my package.json (using vue2)

 "resolutions": {
    "vue-loader": "^15.10.0"
  }

@fazulk I will try, thx fazulk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants