module.styles.ts File
import tw from "tailwind-styled-components";
export const Wrapper = tw.div`
bg-green-500
`;
export const Link = tw.a`
text-blue-500
`;
home.jsx File
import React from "react";
import { Wrapper, Link } from "./module.styles";
type Props = {};
const Home = (props: Props) => {
return (
<Wrapper>
<Link href="#"><p>Click Me</p></Link>
</Wrapper>
);
};
export default Home;
During testing, I encountered the following error message:
Type instantiation is excessively deep and possibly infinite.ts(2589).