DEV Community

Discussion on: Create a React component library with Vite and Typescript

Collapse
 
russmax783 profile image
Russ

Thanks for this! Was finally able to create a shared component library in my project. Been meaning to do that for a while. As of the time of this comment, to get storybook working I had to add:

<script>
  window.global = window
</script>
Enter fullscreen mode Exit fullscreen mode

to a file called .storybook/preview-head.html

Collapse
 
nicolaserny profile image
Nicolas Erny

Good to know! Thanks :)