API 조회에서 에러가 납니다.
285
작성한 질문수 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 버젼으로 진행하셔야되요.
윈도우에서는동작줄이기가어디에있을까요??
0
2
0
백오피스를 개발할 때 아키텍처 구성에 대한 질문
0
27
2
ai가 만든 강의인가요?
0
51
1
VSCode 설정 문의
0
36
2
PPT 코드 관련 질문
0
32
2
state 객체로 묶기
0
28
1
몽고 db 접속 오류
0
20
1
3강 질문
0
48
2
74. 데이터 캐시 - 1 (이론) 강의 영상 누락
0
39
1
2강 nodejs 3단계 설명 질문
0
56
1
imagesLoaded에 관한 질문
0
25
2
useEffect와 lifecycle문의
0
40
2
프론트엔드 학습 수준 문의
0
58
2
리액트 챕터별 코드에서 eslint 설정파일이 없어요
0
56
2
최근 코테, 과제 테스트 트렌드
0
93
2
mainnet transaction
0
293
1
소리가 너무 작아요
0
261
0
transfer에러
0
712
5
transcation, contract api 에러
0
271
0
16.02 설치 관련
0
396
2
안녕하세요 질문드립니다
0
308
2
eosjs@16.0.9 버전으로 하면 에러가 나네요...
0
278
0
transfer.js를 그대로 따라했는데 안되네요
0
282
1
기린넷에 계정이 안만들어집니다.
0
275
1





