Skip to content

Commit

Permalink
docs: ✏️ 添加"rc-input"配置,解决antd版本升级问题 (#1242)
Browse files Browse the repository at this point in the history
由于antd版本升级,rc-input包也需要添加转译配置

✅ Closes: #1241
  • Loading branch information
SilenceRichard authored Nov 15, 2024
1 parent c421ef3 commit bf5a515
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/course/dev-init.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ After the installation is complete, you need configure the `next.config.js` beca
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
+ transpilePackages: [ "@ant-design", "antd", "rc-util", "rc-pagination", "rc-picker" ],
+ transpilePackages: [ "@ant-design", "antd", "rc-util", "rc-pagination", "rc-picker", "rc-input" ],
}

module.exports = nextConfig
Expand Down
2 changes: 1 addition & 1 deletion docs/course/dev-init.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ npm i antd @ant-design/web3 --save
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
+ transpilePackages: [ "@ant-design", "antd", "rc-util", "rc-pagination", "rc-picker" ],
+ transpilePackages: [ "@ant-design", "antd", "rc-util", "rc-pagination", "rc-picker", "rc-input" ],
}

module.exports = nextConfig
Expand Down

0 comments on commit bf5a515

Please sign in to comment.