|
Hi, I'm trying to use Theme-UI, looks great so far, but I think either I'm doing something wrong or peerDependencies are outdated. Are there any older docs for v0.5.0 as guide to follow? or maybe I'm doing something wrong? |
Replies: 1 comment 2 replies
|
AFAIK Gatsby's Babel config uses classic runtime by default. You'd have to overwrite this setting in your Babel config like this: https://www.gatsbyjs.com/docs/reference/release-notes/v3.0/#babel-preset-gatsby If you configure Theme UI as your importSource in the config you won't need to use any JSX pragma comment. Alternatively, you can still use classic JSX runtime and go without modifying Babel config by using Try this: |
peerDependencieswere oudated. Thanks for catchng this!AFAIK Gatsby's Babel config uses classic runtime by default. You'd have to overwrite this setting in your Babel config like this: https://www.gatsbyjs.com/docs/reference/release-notes/v3.0/#babel-preset-gatsby
If you configure Theme UI as your importSource in the config you won't need to use any JSX pragma comment.
Alternatively, you can still use classic JSX runtime and go without modifying Babel config by using
@jsxpragma comment.Try this: