next-linaria icon indicating copy to clipboard operation
next-linaria copied to clipboard

TypeScript issues when using "export default withLinaria(nextConfig)"

Open AshConnolly opened this issue 1 year ago • 0 comments

Hi there! 🙂 I'm getting TS issues when using export default withLinaria(nextConfig) Screenshot 2023-10-27 at 17 25 47

It only occurs when I change from export default nextConfig to export default withLinaria(nextConfig) The error doesn't occur using a different config wrapper like export default WithNextMDX(nextConfig) So I believe this is an issue with next-linaria.

Repo - https://github.com/AshConnolly/linaria-bug codesandbox of repo - https://codesandbox.io/p/github/AshConnolly/linaria-bug/master

Any ideas on how to solve this?

AshConnolly avatar Oct 27 '23 16:10 AshConnolly