API 조회에서 에러가 납니다.
284
작성한 질문수 4
const Eos = require('eosjs');
const config = {
httpEndpoint: 'http://178.62.36.41:8888'
};
Eos(config).getInfo((error, info) => {
if(error){
console.error(error);
}
console.log(info);
});
결과가 아래와 같이 오류로 나옵니다.
다른
HTTP API LIST를 사용해도 동일합니다.
TypeError: Eos is not a function
at Object.<anonymous> (/Users/hyungsoolim/eos/getInfo.js:7:1)
at Module._compile (internal/modules/cjs/loader.js:721:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:732:10)
at Module.load (internal/modules/cjs/loader.js:620:32)
at tryModuleLoad (internal/modules/cjs/loader.js:560:12)
at Function.Module._load (internal/modules/cjs/loader.js:552:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:774:12)
at executeUserCode (internal/bootstrap/node.js:342:17)
at startExecution (internal/bootstrap/node.js:276:5)
at startup (internal/bootstrap/node.js:227:5)
답변 1
0
eosjs를 설치 하셧나요? 설치 하셨으면 버젼이 20.으로 되면서 나는 부분이에요. 20.0으로 버젼 업이 퇴근에 되서요. 해당 강의는 v16.x 버젼으로 진행하셔야되요.
3강 질문
0
15
1
74. 데이터 캐시 - 1 (이론) 강의 영상 누락
0
26
1
2강 nodejs 3단계 설명 질문
0
33
1
imagesLoaded에 관한 질문
0
19
2
useEffect와 lifecycle문의
0
26
2
프론트엔드 학습 수준 문의
0
37
2
리액트 챕터별 코드에서 eslint 설정파일이 없어요
0
47
2
최근 코테, 과제 테스트 트렌드
0
67
2
lucide react 아이콘 설치
0
46
2
17강 zustand store 서버에서 생성
1
36
1
문의관련 문의
0
44
2
next.js 를 2대이상 실행하는 경우 제공하는 cache 기능들은 어떻게 되나요?
0
55
2
76. 전문성 더하기: 놓치면 아쉬운 관련 기술들 수업 자료가 없어요.
0
47
2
ai 도구 질문
0
31
1
저는 왜 콘솔에서 props가 한 줄만 찍히나요?
0
47
1
mainnet transaction
0
292
1
소리가 너무 작아요
0
261
0
transfer에러
0
709
5
transcation, contract api 에러
0
270
0
16.02 설치 관련
0
392
2
안녕하세요 질문드립니다
0
306
2
eosjs@16.0.9 버전으로 하면 에러가 나네요...
0
277
0
transfer.js를 그대로 따라했는데 안되네요
0
279
1
기린넷에 계정이 안만들어집니다.
0
275
1





