使用typescript+react+webpack 启用项目的时候报错
React' refers to a UMD global, but the current file is a module. Consider adding an import instead
修改tsconfig.json的配置选项
"compilerOptions": {
"jsx": "react-jsx",
}
使用typescript+react+webpack 启用项目的时候报错
React' refers to a UMD global, but the current file is a module. Consider adding an import instead
修改tsconfig.json的配置选项
"compilerOptions": {
"jsx": "react-jsx",
}
本文标题:React' refers to a UMD global, b
本文链接:https://www.haomeiwen.com/subject/jpabwrtx.html
网友评论