Skip to content

error TS4023 when compiling a library that uses "styled-components": "^6.1.9" #4299

Open
@akkadaya

Description

@akkadaya

error TS4023: Exported variable 'StyledComponent1' has or is using name 'IStyledComponentBase' from external module ".../node_modules/styled-components/dist/types" but cannot be named.

I could compile the library after exporting the IStyledComponentBase interface in node_modules/styled-components/dist/types.d.ts

Here is the link to the interface in this repo:

interface IStyledComponentBase<R extends Runtime, Props extends object = BaseObject>

Am I doing something wrong? or is it a bug in styled-components that needs to be fixed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions