antd组件用commonjs模式加载,国际化不起作用?配置见正文,我将module改成“es2015”就没问题

新手上路,请多包涵

{
"compilerOptions": {

"moduleResolution": "node",
"target": "es5",
"jsx": "react",
"sourceMap": true,
"skipDefaultLibCheck": true,
"skipLibCheck": true,
"module": "commonjs",
"allowSyntheticDefaultImports": true,
"removeComments": true

},
"exclude": [

"bin",
"node_modules"

]
}

阅读 1.7k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进