Tailwind-Styled-Component
Tailwind-Styled-Component copied to clipboard
TypeScript Error..
module.style.ts file import tw from "tailwind-styled-components";
import tw from "tailwind-styled-components";
export const Container = tw.divbg-blue-600;
export const Button = tw.buttonp-2;
index.tsx file import React from "react"; import { Button, Container } from "./module.navbarStyles";
type Props = {};
const index = (props: Props) => { return ( <Container> <Button>Hello Next.js</Button> </Container> ); };
export default index;
Then I got this type of Error.
Type instantiation is excessively deep and possibly infinite.ts(2589).

Duplicate of #79