Up-North-Coding / jovian

3 stars 1 forks source link

Notistack TS error #27

Open outragedhuman opened 2 years ago

outragedhuman commented 2 years ago
'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: https://github.com/iamhosseindhv/notistack/issues/485#issuecomment-1137834890

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 commented 1 year ago

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