안녕하세요.
caver-js-ext-kas를 사용하여 전송이력조회 기능을 개발중에
해당 js 설치 및 import를 진행하였는데 아래와 같은 오류가 발생하여 해당 type정의를 설치하려고 하면
아래와 같은 오류가 계속 발생합니다.
환경은 CRA기반으로 진행하고 있습니다.
소스:
import Caver from “caver-js”;
import CaverExtKAS from “caver-js-ext-kas”;
오류 문구:
TS7016: Could not find a declaration file for module ‘caver-js-ext-kas’. ‘…/node_modules/caver-js-ext-kas/index.js’ implicitly has an ‘any’ type.
Trynpm i --save-dev @types/caver-js-ext-kas
if it exists or add a new declaration (.d.ts) file containingdeclare module 'caver-js-ext-kas';
타입설치:
npm i --save-dev @types/caver-js-ext-kas
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@types%2Fcaver-js-ext-kas - Not found
npm ERR! 404
npm ERR! 404 ‘@types/caver-js-ext-kas@*’ is not in this registry.
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! A complete log of this run can be found in:
npm ERR! …/.npm/_logs/2022-07-01T01_54_37_075Z-debug-0.log