Antd table组件用rowSelection时报shiftKey undefined

667 阅读1分钟

原因

项目同时使用了 antd 和 ant-mobile,而且 antd 和 ant-mobile 都依赖 rc-checkbox,使用 yarn 安装的时候低版本的 rc-checkbox 被装在了 node_modules 根目录,而我在 webpack 中设置了 modules: [path.resolve('Assets/src'), path.resolve('node_modules')] 造成 webpack 只从根目录下的 node_modules 读取依赖,打包了错误的版本

来源:github.com/ant-design/…