DEV Community

Discussion on: NextJS + Typescript + Storybook guide 2020

Collapse
 
wonder2210 profile image
Wonder2210 • Edited

Because , storybook need it to transpile our TS, and if you use the tsconfig in the main folder you will have errors like " you may need an additional loader to handle the result of these loaders", nowadays you can skip this tutorial , and use storybook 6 , doesn't need any config for TS ✌

Collapse
 
hood profile image
Andrea Cappuccio

You'd be better off using "extends" pointing to the original tsconfig file, instead of copying it altogether.

For reference: typescriptlang.org/tsconfig#extends

Thread Thread
 
wonder2210 profile image
Wonder2210

Thanks i didn't know that ✌👍 , nowadays with storybook 6 is not needed any special config , in the next days i'll do an update !!