Tailwind-Styled-Component icon indicating copy to clipboard operation
Tailwind-Styled-Component copied to clipboard

TypeScript Error..

Open morshedulmunna opened this issue 3 years ago • 1 comments

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). image

morshedulmunna avatar Oct 25 '22 03:10 morshedulmunna

Duplicate of #79

mac501pl avatar Nov 04 '22 03:11 mac501pl