Closed enchorb closed 2 weeks ago
contextApiPatch.d.ts
is not imported by any of the modules, it's kind of helper for older versions of React and users need to manually include it into their tsconfig.json.
For some reason React.Native, includes this file, check your tsconfig, maybe it's because include
option is too greedy. If so, try to add this file into exclude
I am using
@casl/react
in aReact Native
project. For some reason instead ofReact
types resolving fromreact
(namespace React). They are resolving from@casl/react
(module module:react).After further investigation this is because of the
contextApiPatch.d.ts
which does:I am using
patch-package
to get rid of this but would be nice for an update to the package itself.