Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- Babel
- deep learning
- python
- NCP
- Redis
- AWS
- Go
- 기초 수학
- javascript
- php
- rabbitmq
- nodejs
- docker
- For
- CentOS
- Redux
- 블레이드 템플릿
- Node
- Switch
- SQL
- Machine Learning
- Backbone.js
- linux
- laravel
- phpredis
- React
- fastapi
- webpack
- nginx
- mariadb
Archives
- Today
- Total
개발일기
Typescript - Cannot use JSX unless the '--jsx' flag is provided.ts(17004) 오류 본문
Javascript/Typescript
Typescript - Cannot use JSX unless the '--jsx' flag is provided.ts(17004) 오류
Flashback 2021. 10. 2. 18:28728x90
반응형

{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"sourceMap": true,
"outDir": "dist",
"downlevelIteration": true,
"strict": true,
"noImplicitAny": false,
"moduleResolution": "node",
"baseUrl": ".",
"paths": {
"*": ["node_modules/*"]
},
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true
}
} // tsconfig.json
tsconfig.json에서 jsx라는 항목을 빼먹었기 때문에 발생하는 오류이다.
"jsx": "preserve" /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */,
해당 구문을 tsconfig.json의 compilerOptions안에 추가해주면 된다.
728x90
반응형
'Javascript > Typescript' 카테고리의 다른 글
Typescript - tsconfig.json란 (2) | 2021.10.07 |
---|