We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi all.
VSCode reports this problem with PermifyProvider:
PermifyProvider
Type '{ children: never[]; }' has no properties in common with type 'IntrinsicAttributes'.ts(2559)
Indeed, the PermifyProvider.d.ts in the package downloaded via npm or yarn has this definition:
PermifyProvider.d.ts
npm
yarn
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:
webpack
react-role
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 😅
npm link
Let me know how I can help 😃
The text was updated successfully, but these errors were encountered:
For now, I've upcasted the PermifyProvider object to any like this:
any
import { PermifyProvider as PProv } from '@permify/react-role'; const PermifyProvider = PProv as any;
Sorry, something went wrong.
Should be fixed by #9 when merged
No branches or pull requests
Hi all.
VSCode reports this problem with
PermifyProvider
:Indeed, the
PermifyProvider.d.ts
in the package downloaded vianpm
oryarn
has this definition:I've tried cleaning the cache, and tried on different machines (Lubuntu 20.04 with
yarn
and Windows 10 withnpm
),To check if there were problems with
webpack
, I builtreact-role
locally, and the definition was right: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 😃
The text was updated successfully, but these errors were encountered: