diff --git a/README-zh_CN.md b/README-zh_CN.md index 14b00e678c..f8a715283c 100644 --- a/README-zh_CN.md +++ b/README-zh_CN.md @@ -66,6 +66,9 @@ tsconfig.json } ``` +> 注意:设置 `allowSyntheticDefaultImports` 避免 `error TS1192: Module 'react' has no default export` 的错误。 + + ## 链接 - [首页](http://ant.design/) diff --git a/README.md b/README.md index 890cde2125..1f2168a36c 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,6 @@ import 'antd/dist/antd.css'; // or 'antd/dist/antd.less' import 'antd/lib/date-picker/style/css'; // with style ``` - ## Environment Support * Browser: Modern browsers and Internet Explorer 9+. @@ -96,6 +95,8 @@ tsconfig.json } ``` +> Note: set `allowSyntheticDefaultImports` to prevent `error TS1192: Module 'react' has no default export`. + ## Links - [Home page](http://ant.design/)