Executed the following commands:
wasp new chakra-v3
npm i @chakra-ui/react @emotion/react
npx @chakra-ui/cli snippet add
Added the App.tsx
with the Chakra provider component.
Added {/* @ts-ignore */}
in the two component files (there are some tsconfig.json
incompatibilites between Wasp and Chakra v3.
Thanks @infomiho for this!
For Chakra to play nice with tailwind (included in the default version of opensaas in wasp), we need to add this to the tailwind.config.js file under module.exports:
corePlugins: { preflight: false, },