Skip to content

Commit

Permalink
fix: πŸ› antd5 开启 import=true η›΄ζŽ₯ζŠ₯ι”™ (umijs#10525)
Browse files Browse the repository at this point in the history
Co-authored-by: pshu <[email protected]>
  • Loading branch information
stormslowly and stormslowly authored Feb 16, 2023
1 parent 2548cf7 commit c5fde6c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/plugins/src/antd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ export default (api: IApi) => {
...theme,
...memo.theme,
};
if (memo.antd?.style) {
const errorMessage = `Can't set antd.style while using antd5 (${antdVersion})`;
if (memo.antd?.import) {
const errorMessage = `Can't set antd.import while using antd5 (${antdVersion})`;

api.logger.fatal(
'please remove config antd.style, then start server again',
'please change config antd.import to false, then start server again',
);

throw Error(errorMessage);
Expand Down

0 comments on commit c5fde6c

Please sign in to comment.