Skip to content
Discussion options

You must be logged in to vote

Hi @mamello-justice! I'm Dosu and I’m helping the storybook team.

The error t.jsxDEV is not a function almost always points to a mismatch in how JSX is transformed between your libraries and your Storybook app—typically, one is using the "automatic" JSX runtime and the other is not, or a library is being built in development mode and consumed in production mode. This is especially common in NX monorepos.

To fix this, make sure all your libraries and your Storybook app use the same JSX runtime and compatible build tooling. Here’s what to check:

  1. In every tsconfig.json (both in your libraries and the Storybook app), set "jsx": "react-jsx" (or "automatic" if using a newer TypeScript) to en…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mamello-justice
Comment options

Answer selected by mamello-justice
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant