I\'m working on a project with react using typescript and I\'m having a bad time figuring out why this error is happening, basically, I can\'t use
react
typescript
Your file extension is most likely .ts instead of .tsx.
.ts
.tsx
Therefore TypeScript is interpreting as cast and tries to find a type Provider in the namespace ctx.
as cast and tries to find a type Provider in the namespace ctx.
Provider
ctx