会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
飞尽堂前燕
善行无迹 恒德乃足
博客园
首页
新随笔
联系
订阅
管理
2020年8月6日
配置 ts-loader 后 执行编译时报错 TS6142: Module './router' was resolved to 'C:\GitHubWorkspace\webpackPluginDemo\src\router.tsx', but '--jsx' is not set.
摘要: 这时候 需要在tsconfig.json中添加一条 "jsx": "react" { "compilerOptions": { "jsx": "react", "target": "es5", "sourceMap": true }, "exclude": [ "node_modules" ] }
阅读全文
posted @ 2020-08-06 14:28 飞尽堂前燕
阅读(3845)
评论(0)
推荐(1)
公告