Casl: Module '"../../node_modules/@casl/react"' has no exported member 'BoundCanProps'. TS2305

Created on 28 Dec 2020  路  3Comments  路  Source: stalniy/casl

I got an error when I try to upgrade @casl/ability and @casl/react to the latest version

Module '"../../node_modules/@casl/react"' has no exported member 'BoundCanProps'.  TS2305

    1 | import { Ability } from "@casl/ability";
  > 2 | import { BoundCanProps, createCanBoundTo } from "@casl/react";
      |          ^
    3 | import { Fade } from "@material-ui/core";
    4 | import { PropsWithChildren, ReactElement } from "react";
    5 | import ability from "../utils/ability";
bug

Most helpful comment

just published @casl/[email protected] with a fix

All 3 comments

Yes, my bad. Give me few minutes to fix this. This is a configuration issue during build.

just published @casl/[email protected] with a fix

Thank you @stalniy <3

Was this page helpful?
0 / 5 - 0 ratings