Skip to content

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

@AshConnolly

Description

@AshConnolly

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions