반응형
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 | 31 |
Tags
- CSS
- vue3
- rendering
- 비동기
- CloudFlare
- http3
- aws
- vue-cli
- import.meta.env
- caching
- ViTE
- vue
- svelte
- TLS
- csr
- ts error
- QUIC
- devtools
- e2e
- https
- msw
- Cypress
- typeScript
- Testing
- SSR
- api test
- JavaScript
- custom command
- 선택자
- web vital
Archives
- Today
- Total
Develop Note by J.S.
[Typescript] Vite import.meta TS2339 Error 본문
반응형
1. TS2339 Error
Vite에서 환경변수 import.meta.env 사용 시 TS2339 Error 발생
2. 조치 방법
tsconfig.json compilerOptions.types에 "vite/client"를 추가하면 해결됩니다.
//tsconfig.json
"compilerOptions": {
...
"types": ["node", "vite/client"],
}
반응형
'Language > Typescript' 카테고리의 다른 글
[Typescript] Enum과 Union Type (0) | 2024.01.30 |
---|---|
[Typescript] TS1484 VerbatimModuleSyntax (0) | 2023.07.17 |
[Typescript] Cypress Command 등록 시 TS2345 Error (0) | 2023.07.11 |
[Typescript] Vite Init TS2307 Error (0) | 2023.07.10 |
[Typscript] tsconfig.json (0) | 2023.07.05 |