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

Notistack TS error #27

Open
outragedhuman opened this issue May 25, 2022 · 1 comment
Open

Notistack TS error #27

outragedhuman opened this issue May 25, 2022 · 1 comment
Labels
blocked bug Something isn't working upstream

Comments

@outragedhuman
Copy link
Collaborator

outragedhuman commented May 25, 2022

'SnackbarProvider' cannot be used as a JSX component.
  Its instance type 'SnackbarProvider' 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("/Users/nbowers/git/projectJovian/node_modules/@types/react-transition-group/node_modules/@types/react/index").ReactNode'.
        Type '{}' is not assignable to type 'ReactNode'.ts(2786)

Reported here: iamhosseindhv/notistack#485 (comment)

There's currently a workaround in README.md for Jovian which will allow this to work. A fork is in progress to resolve this internally in a better manner.

@outragedhuman
Copy link
Collaborator Author

On way to fix this would be to drop the library and use toastify as mentioned in #137

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked bug Something isn't working upstream
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant