Warning: [antd: Tabs] Tabs.TabPane is deprecated. Please use items directly.
problem
控制台报错 Warning: [antd: Tabs] Tabs.TabPane is deprecated. Please use items directly.
reason
https://ant.design/components/tabs/ Usage upgrade after 4.23.0#
antd ta…
DevTools failed to load source map: Could not parse content for http://localhost:8000/index.js.map: Unexpected token ‘<’, "<!DOCTYPE "… is not valid JSON
problem
控制台报错
DevTools failed to load source map: Could not parse content f…
devScripts.js:6523 Warning: [antd: Menu] children will be removed in next major version. Please use items instead.
problem
原因:https://ant.design/components/menu/
reason
修改antd menu组件的使用方式
solution
// before
<Menu className{s…
File ignored because of a matching ignore pattern. Use “–no-ignore” to override
problem
eslint 报错
File ignored because of a matching ignore pattern. Use "--no-ignore" to overridereason
原因不明
solution
解决办法是 .eslintignore 修改忽略…
Nginx directory index of is forbidden
problem
Nginx directory index of is forbidden
reason
alias配置原因,最后的目录需要斜线结尾
solution
# before
location / {alias /path/to/dist;
}# after
location / {alias /path/to/dist/; # 注意最后…
Warning: Can’t perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in a useEffect cleanup function.
problem
pro-antd 开发模式…