nuxt-modules / storybook

Storybook integration with Nuxt.
https://storybook.nuxtjs.org
393 stars 88 forks source link

dev serve will fail when enable `typecheck` in `nuxt.config` #480

Closed baixiaoyu2997 closed 1 week ago

baixiaoyu2997 commented 5 months ago

i have a nuxt layrer call base repo , and i have a storybook repo, both in monorepo, when i extends:"../../packages/base" in storybook, and base enable typecheck, can not start dev server.

because, According to the .nuxt directory of the storybook, it can be found that tsconfig was not generated, but typecheck was executed. this causes code in node_modules to also be typechecked

"devDependencies": {
    "@nuxtjs/storybook": "^7.0.0",
    "@storybook-vue/nuxt": "0.2.1",
    "@storybook/addon-essentials": "^7.6.17",
    "@storybook/addon-interactions": "^7.6.17",
    "@storybook/addon-links": "^7.6.17",
    "@storybook/blocks": "^7.6.17",
    "@storybook/builder-vite": "^7.6.17",
    "@storybook/testing-library": "^0.2.2",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "storybook": "^7.6.17",
    "storybook-addon-vue-slots": "^0.9.29"
  }
tobiasdiez commented 3 months ago

Could you please provide a reproduction, preferable based on https://github.com/nuxt-modules/storybook/tree/main/examples/starter

tobiasdiez commented 1 week ago

Closing this issue due to inactivity :zzz: Please reopen the issue with additional information if the problem persists.