问题标签 [redux-form-validators]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
javascript - 使用 redux 表单超出更新深度
我正在尝试根据下拉值选择来验证 redux-form,下面是代码和错误。
Uncaught Error: Maximum update depth exceeded.
当组件在内部重复调用setStatecomponentWillUpdate
或componentDidUpdate
. React 限制了嵌套更新的数量以防止无限循环。
请帮助我并提前致谢
错误:
npm - 删除模块中的 package.lock.json 文件后“npm install”出现错误。[操作系统 - Windows]
我想删除package-lock.json
模块中的文件并使用 npm install。但是当 npm install 运行时,我收到一条错误消息“无法解析依赖树”。
整个错误:["unable to resolve dependency tree" while resolve: tpip@0.1.0 Found: react-redux@7.1.0 node_modules/react-redux react-redux@"7.1.0" 从根项目。无法解决依赖关系:来自 redux-form-validators@2.7.5 node_module/reduxform-validators redux 的 peer react-redux@"^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0"根项目中的 -formvalidators @"^2.7.5" 修复上游依赖冲突,或使用 --force 或 --legacy-peer-deps 重试此命令以接受不正确(并且可能损坏)的依赖解析。
我遵循了更多的教程和文档。但我无法解决它。