Open XmlmXmlmX opened 8 months ago
I already tried to update my webpack version to ^5.89.0
. This didn't help.
So, it must be something with the package webpack-dev-middleware
, in the wdm
function. validate
is the first call but cannot be found somehow.
Do you a have a reproduction repo you can share? If not, can you create one? Go to https://storybook.new or see repro docs. Thank you! 🙏
I cannot find any working example with TS+Vue+Webpack.
Do you a have a reproduction repo you can share? If not, can you create one? Go to https://storybook.new or see repro docs. Thank you! 🙏
Got it now: https://stackblitz.com/edit/fsd7873udj
Similar but not helpful: https://github.com/webpack/schema-utils/issues/152
Also already tried to use storybook@next
(8.0.0-beta.2
), same error.
The problem seems to be various versions of schema-utils
.
Edit: I'm working on a monorepo which had packages installing older versions of @storybook/addon-actions
, @storybook/addon-docs
, etc (v6 VS v7).
$ npm ls schema-utils
│ ├─┬ @storybook/react@6.5.16
│ │ ├─┬ @pmmmwh/react-refresh-webpack-plugin@0.5.11
│ │ │ └── schema-utils@3.3.0
│ │ ├─┬ @storybook/core-common@6.5.16
│ │ │ └─┬ webpack@4.47.0
│ │ │ ├── schema-utils@1.0.0
│ │ │ └─┬ terser-webpack-plugin@1.4.5
│ │ │ └── schema-utils@1.0.0 deduped
│ │ └─┬ @storybook/core@6.5.16
│ │ └─┬ @storybook/core-server@6.5.16
│ │ ├─┬ @storybook/builder-webpack4@6.5.16
│ │ │ ├─┬ @storybook/core-common@6.5.16
│ │ │ │ └─┬ fork-ts-checker-webpack-plugin@6.5.3
│ │ │ │ └── schema-utils@2.7.0 deduped
│ │ │ ├─┬ css-loader@3.6.0
│ │ │ │ └── schema-utils@2.7.0
│ │ │ ├─┬ file-loader@6.2.0
│ │ │ │ └── schema-utils@3.3.0
│ │ │ ├─┬ postcss-loader@4.3.0
│ │ │ │ └── schema-utils@3.3.0
│ │ │ ├─┬ raw-loader@4.0.2
│ │ │ │ └── schema-utils@3.3.0
│ │ │ ├─┬ style-loader@1.3.0
│ │ │ │ └── schema-utils@2.7.0 deduped
│ │ │ ├─┬ terser-webpack-plugin@4.2.3
│ │ │ │ └── schema-utils@3.3.0
│ │ │ ├─┬ url-loader@4.1.1
│ │ │ │ └── schema-utils@3.3.0
│ │ │ └─┬ webpack@4.47.0
│ │ │ ├── schema-utils@1.0.0
│ │ │ └─┬ terser-webpack-plugin@1.4.5
│ │ │ └── schema-utils@1.0.0 deduped
│ │ ├─┬ @storybook/manager-webpack4@6.5.16
│ │ │ ├─┬ css-loader@3.6.0
│ │ │ │ └── schema-utils@2.7.1 deduped
│ │ │ ├─┬ style-loader@1.3.0
│ │ │ │ └── schema-utils@2.7.1 deduped
│ │ │ ├─┬ terser-webpack-plugin@4.2.3
│ │ │ │ └── schema-utils@3.3.0
│ │ │ └─┬ webpack@4.47.0
│ │ │ ├── schema-utils@1.0.0
│ │ │ └─┬ terser-webpack-plugin@1.4.5
│ │ │ └── schema-utils@1.0.0 deduped
│ │ ├─┬ @storybook/telemetry@6.5.16
│ │ │ └─┬ @storybook/core-common@6.5.16
│ │ │ └─┬ webpack@4.47.0
│ │ │ ├── schema-utils@1.0.0
│ │ │ └─┬ terser-webpack-plugin@1.4.5
│ │ │ └── schema-utils@1.0.0 deduped
│ │ └─┬ webpack@4.47.0
│ │ ├── schema-utils@1.0.0
│ │ └─┬ terser-webpack-plugin@1.4.5
│ │ └── schema-utils@1.0.0 deduped
│ ├─┬ babel-loader@8.3.0
│ │ └── schema-utils@2.7.1
│ ├─┬ fork-ts-checker-webpack-plugin@6.5.3
│ │ └── schema-utils@2.7.0
└─┬ @storybook/react-webpack5@7.6.17
└─┬ @storybook/builder-webpack5@7.6.17
├─┬ babel-loader@9.1.3
│ └── schema-utils@4.2.0
├─┬ fork-ts-checker-webpack-plugin@8.0.0
│ └── schema-utils@3.3.0
└─┬ webpack-dev-middleware@6.1.1
└── schema-utils@4.2.0 deduped
I installed Storybook to a existing project which is using Vue3 and Webpack 5 (
npx storybook@latest init
):Install bash log
Everything went well, until here. But when it comes to start the application, this happens:
I'm not sure how to fix this. Do I have to update some parts of my TypeScript config? My code does contain a function called
validate
, but my webpack build does work well.To Reproduce
I don't want to share my whole project. So, I paste here single parts of it:Got it now: https://stackblitz.com/edit/fsd7873udjSource files
System
Additional context
No response