Skip to content

PermifyProvider in the npm registry package is missing { children } #5

@gRizzlyGR

Description

@gRizzlyGR

Hi all.

VSCode reports this problem with PermifyProvider:

Type '{ children: never[]; }' has no properties in common with type 'IntrinsicAttributes'.ts(2559)

image

Indeed, the PermifyProvider.d.ts in the package downloaded via npm or yarn has this definition:

declare const PermifyProvider: React.FunctionComponent;

I've tried cleaning the cache, and tried on different machines (Lubuntu 20.04 with yarn and Windows 10 with npm),

To check if there were problems with webpack, I built react-role locally, and the definition was right:

declare const PermifyProvider: ({ children }: PropsWithChildren) => JSX.Element;

Finally, I linked the local library via npm link to my project, and the problem was gone, but I cannot really use this workaround 😅

Let me know how I can help 😃

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions