Shivangi Khandelwal
Shivangi Khandelwal

Reputation: 123

storybook should not compile when there are typescript errors

I am using storybook with typescript and babel-loader to compile both ts and js files in storybook webpack and project webpack. Babel-loader is not throwing errors when I run storybook, when my files have typescript errors. One approach is to add a tsc command in my package.json, but thi isn't what I want to do. I therefore added fork-ts-checker-webpack-plugin in my webpack config to check for typescript errors. Project is now throwing errors on running storybook but it is still running despite having ts errors. The behaviour I want is that storybook should not run when there are ts errors.

Please help with the same. Thanks in advance

Upvotes: 0

Views: 1032

Answers (0)

Related Questions