stalniy / casl

CASL is an isomorphic authorization JavaScript library which restricts what resources a given user is allowed to access
https://casl.js.org/
MIT License
5.93k stars 269 forks source link

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

Closed hckhanh closed 3 years ago

hckhanh commented 3 years ago

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";
stalniy commented 3 years ago

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

stalniy commented 3 years ago

just published @casl/react@2.2.1 with a fix

hckhanh commented 3 years ago

Thank you @stalniy <3