반응형
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 |
Tags
- 하마모양
- 게시판
- ts7016
- 곧아빠됨
- @types
- 웹퍼블리셔종말
- 마이너스의 의미
- 스케쳐스아치핏
- ChatGPT
- 메일수신거부 프로세스
- 패키지관리자
- .netcore
- 초보
- TS70016
- 개발언어
- c#
- 메일수신거부처리
- typesinstall
- 개발
- json pretty
- asp.net core
- 터미널옵션
- pnpm
- JWT 토큰 인증 로그인 쿠키 설정
- classNames
- locofy.ai
- JWT 토큰
- 아들에게
- nodejs
- 웹퍼블리셔전망
Archives
- Today
- Total
I am maker
TS7016: Could not find a declaration file for module 'qs'. '/node_modules/.pnpm/ 본문
문제해결(Trouble shootings)
TS7016: Could not find a declaration file for module 'qs'. '/node_modules/.pnpm/
코딩하는고릴라 2023. 2. 8. 21:32반응형
import qs from 'qs';
를 썼는데
TS7016: Could not find a declaration file for module 'qs'. '/node_modules/.pnpm/qs@6.11.0/node_modules/qs/lib/index.js' implicitly has an 'any' type. If the 'qs' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/qs'
에러가 발생함.
보통 타입이 없다고 에러가 뜨면서 아래처럼 타입 설치하라고
npm install --save-dev @types/qs
유도하는데,
pnpm 에러인지 괴상하게 뜨네요..
아래 @types/qs를 추가하여 해결하였습니다.
// pacakge.json
"@types/qs": "^6.9.7",
반응형