appbaseio / reactivesearch

Search UI components for React and Vue
https://opensource.appbase.io/reactivesearch
Apache License 2.0
4.9k stars 466 forks source link

Failed prop type: ToggleButton: prop type `enableAppbase` is invalid; it must be a function, usually from the `prop-types` package, but received `undefined` #2082

Closed stonesthatwhisper closed 1 year ago

stonesthatwhisper commented 2 years ago

Affected Projects

React

Library Version: x.y.z "@appbaseio/reactivesearch": "3.40.2",

Describe the bug

Warning: Failed prop type: ToggleButton: prop type `enableAppbase` is invalid; it must be a function, usually from the `prop-types` package, but received `undefined`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.
    at ToggleButton (webpack-internal:///./node_modules/@appbaseio/reactivesearch/lib/components/list/ToggleButton.js:62:3)
    at eval (webpack-internal:///./node_modules/@appbaseio/reactivesearch/lib/components/list/ToggleButton.js:403:60)
    at Connect (webpack-internal:///./node_modules/react-redux/es/components/connectAdvanced.js:159:37)
    at ComponentWrapper (webpack-internal:///./node_modules/@appbaseio/reactivesearch/lib/components/basic/ComponentWrapper.js:47:3)
    at Connect (webpack-internal:///./node_modules/react-redux/es/components/connectAdvanced.js:159:37)
    at PreferencesConsumer (webpack-internal:///./node_modules/@appbaseio/reactivesearch/lib/components/basic/PreferencesConsumer.js:25:22)
    at ToggleButton
siddharthlatest commented 1 year ago

@stonesthatwhisper Can you share a CodeSandbox?

This should be fixed in the latest version of ReactiveSearch.

mohdashraf010897 commented 1 year ago

@stonesthatwhisper The issue has been addressed in this commit and is live in new versions of the lib.