fabien0102/gatsby-starter

Storybook fails on clean install

ccjjmartin opened this issue · 2 comments

Steps to reproduce:

    • gatsby new project https://github.com/fabien0102/gatsby-starter/
    • cd project
    • Make sure you don't have anything running on port 9001
    • yarn run storybook

Get this error:

ERROR in /Users/developer/gatsby/project/node_modules/@types/react-router/index.d.ts (110,50): error TS2304: Cannot find name 'Exclude'.

Found the fix in this open PR:

https://github.com/fabien0102/gatsby-starter/pull/64/files#diff-b9cfc7f2cdf78a7f4b91a753d10865a2R66

Fix:

Upgrade typescript package (in package.json) to 2.8.3 fixed it for me.

Thanks for this one! It's missing bit to this #64

@ccjjmartin I've been trying to resolve this for ages before updating my TypeScript version. Cannot believe it was as simple to resolve as just updating TypeScript.

THANK YOU