React
互联网小学生阿翘
DUREN JIUSHI DUJI, DUJI YISHI DUREN
展开
-
yarnb报错The engine “node“ is incompatible with this module.
报错过程全局npm yarn npm install -g yarn使用yarn create react-app antd-demo 新建项目报错如图错误原因:jest-watch-typeahead@1.0.0: The engine "node" is incompatible with this module. Expected version "^12.22.0 || ^14.17.0 || >=16.0.0". Got "14.16.1"依赖版本不兼容,本机n原创 2021-12-15 16:42:24 · 3489 阅读 · 0 评论 -
You provided a `value` prop to a form field without an `onChange` handler. This will render a read-
React 报错如下:Warning: You provided a value prop to a form field without an onChange handler. This will render a read-only field. If the field should be mutable use defaultValue. Otherwise, set either onChange or readOnly.原因:input标签没有定义onChange事件,但提供了val原创 2021-12-02 17:34:14 · 3900 阅读 · 0 评论