You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could not find a declaration file for module 'react-grid-layout'. '/nodebox/node_modules/.store/[email protected]/node_modules/react-grid-layout/index.js' implicitly has an 'any' type.
and i tried to install @types/react-grid-layout whose lastest version is 1.3.5.
Is it competitable with 1.5.0 or just forget to publish the types?
- error TS2786: 'ResponsiveReactGridLayout' cannot be used as a JSX component.
Its instance type 'Component<ResponsiveProps & WidthProviderProps, any, any>' is not a valid JSX element.
Property 'refs' is missing in type 'Component<ResponsiveProps & WidthProviderProps, any, any>' but required in type 'ElementClass'.
91 <ResponsiveReactGridLayout
~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@types/react/index.d.ts:510:9
510 refs: {
~~~~
'refs' is declared here.
I think this is caused by conflicting type definitions for react, between what my project uses versus the @types library.
Describe the bug
I got error messages like that :
and i tried to install
@types/react-grid-layout
whose lastest version is 1.3.5.Is it competitable with 1.5.0 or just forget to publish the types?
Your Example Website or App
https://codesandbox.io/p/sandbox/staging-bush-3lvt7?file=%2Fsrc%2FShowcaseLayout.js%3A5%2C21
Steps to Reproduce the Bug or Issue
ShowcaseLayout.js
import { Responsive, WidthProvider } from "react-grid-layout";
Expected behavior
I could install
@types/react-grid-layout
with 1.5.0react-grid-layout library version
1.5.0
Operating System Version
macOS
Browser
Chrome
Additional context
No response
Screenshots or Videos
The text was updated successfully, but these errors were encountered: