got Can’t resolve ‘react/jsx-runtime’ error while use try to create the shared component with storybook in react-typescript

What the React version of the project you import the component?

I got the same error and found 2 solutions

  1. Use React < 17 & Typescript < 4.1.0 with the following tsconfig change:

    "jsx": "react" // from jsx-react
    
  2. Use React 17 on both the library and the other repository with

    "jsx": "react-jsx"
    

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)