Cannot use namespace 'FrameContextProps' as a type.
See original GitHub issueTypescript throws error when using FrameContextProps
or FrameComponentProps
.
Please check example: https://codesandbox.io/s/goofy-paper-xesyu?file=/src/App.tsx

Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Error: Warning: Accessing PropTypes via the main React package is ...
... Style import are not included HOT 4; Cannot use namespace 'FrameContextProps' as a type. HOT 5; `createPortal` cannot have a nullable target...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hello, Same cause of problem for me. I used to use
@types/react-frame-component
(which works fine) but the latest version broke this behavior due to includingindex.ts
in the package.I don’t really understand this choice, if anyone has an idea…
The workaround I use is to declare the types of the module in my project to override the official
declare module 'react-frame-component';
.Good day !
@ryanseddon here is a pull request: https://github.com/ryanseddon/react-frame-component/pull/213