Skip to content
New issue

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

ScrollContainer cannot be used as a JSX component #122

Open
alpapan opened this issue Apr 5, 2024 · 0 comments
Open

ScrollContainer cannot be used as a JSX component #122

alpapan opened this issue Apr 5, 2024 · 0 comments

Comments

@alpapan
Copy link

alpapan commented Apr 5, 2024

Any idea what could be causing this?

Failed to compile.

/home/alexie/software/MoMI-G/src/widgets/Dnd.tsx
(194,16): 'ScrollContainer' cannot be used as a JSX component.
  Its instance type 'Component<ThemedOuterStyledProps<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any>, any, any>' is not a valid JSX element.
    The types returned by 'render()' are incompatible between these types.
      Type 'React.ReactNode' is not assignable to type 'import("/home/alexie/software/MoMI-G/node_modules/@types/react-table/node_modules/@types/react/ts5.0/index").ReactNode'.
        Type '{}' is not assignable to type 'ReactNode'.

the log before this error:

npm --version
10.2.4
node --version
v20.11.1
yarn --version
1.22.22

yarn run v1.22.22
$ react-app-rewired start --scripts-version react-scripts-ts
Starting type checking and linting service...
Using 1 worker with 2048MB memory limit
Watching: /home/alexie/software/MoMI-G/src
[HPM] Proxy created: [Function: context]  ->  http://chm1.momig.tokyo/
Starting the development server...

yarn start
yarn run v1.22.22
$ react-app-rewired start --scripts-version react-scripts-ts
(node:20497) [DEP0111] DeprecationWarning: Access to process.binding('http_parser') is deprecated.
(Use `node --trace-deprecation ...` to show where the warning was created)
Tried to lint /home/alexie/software/MoMI-G/src/widgets/tubemap.js but found no valid, enabled rules for this file type and file path in the resolved configuration.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant