Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Failed prop type: SearchSvg: prop type `style` is invalid; it must be a function, usually from the `prop-types` package, but received `undefined`.

未关闭
#2,081 0 条评论 1 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@mohdashraf010897 已经在做这个了。

开始于 2022年12月13日。

评估

这个 Issue 还没有评估数据。

描述

bug

Affected Projects
React

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

Describe the bug

Warning: Failed prop type: SearchSvg: prop type `style` 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 SearchSvg
    at DataSearch (webpack-internal:///./node_modules/@appbaseio/reactivesearch/lib/components/search/DataSearch.js:132:3)
    at eval (webpack-internal:///./node_modules/@appbaseio/reactivesearch/lib/components/search/DataSearch.js:1777:58)
    at render
    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 DataSearch
    at div
    at Toolbar (webpack-internal:///./node_modules/@material-ui/core/esm/Toolbar/Toolbar.js:49:23)
    at WithStyles (webpack-internal:///./node_modules/@material-ui/core/node_modules/@material-ui/styles/esm/withStyles/withStyles.js:61:31)
    at header
    at Paper (webpack-internal:///./node_modules/@material-ui/core/esm/Paper/Paper.js:48:23)
    at WithStyles (webpack-internal:///./node_modules/@material-ui/core/node_modules/@material-ui/styles/esm/withStyles/withStyles.js:61:31)
    at AppBar (webpack-internal:///./node_modules/@material-ui/core/esm/AppBar/AppBar.js:107:23)

Additional context

主要语言
JavaScript
星标
4.9k
派生
479
平均合并
4 小时 43 分钟
30 天内合并 PR
3

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

appbaseio/reactivesearch 的其他 Issue

查看 appbaseio/reactivesearch 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。