API 조회에서 에러가 납니다.
289
4 asked
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)
Answer 1
0
eosjs를 설치 하셧나요? 설치 하셨으면 버젼이 20.으로 되면서 나는 부분이에요. 20.0으로 버젼 업이 퇴근에 되서요. 해당 강의는 v16.x 버젼으로 진행하셔야되요.
깃권한요청드립니다
0
7
1
<div id="banner">배너 이미지</div> 관련 질문
0
9
1
강의자료
0
18
1
윈도우에서 Node js를 설치하고 싶어요
0
27
0
addToFile function에서 path를 사용해 새로운 파일을 생성
0
36
1
[46강] EventEmitter를 활용한 10가지 패턴 중 플러그인 아키텍처
0
31
2
강의가 누락된것 같습니다.
0
38
2
용어 발음법이 계속 바뀌는 것 같은데 이런 부분들 개선이 가능할까요...?
0
48
1
counter01.html은 어디있을까요?
1
16
1
존재하지 않는 일기 url입력 시 alert이 두 번 떠요
0
43
1
useState 직접 구현 부분에서 질문이 있습니다.
1
46
1
학습을 하고 블로그에 정리를 해도 괜찮을까요?
1
45
1
교재(3쇄)와 강의 내용 문의
0
39
2
섹션2번 부분 강의 화면이 잘 못된것 같아서 문의합니다.
0
24
1
call stack 표현이 잘못표현된것이 아닌가요?
0
83
2
mainnet transaction
0
302
1
소리가 너무 작아요
0
268
0
transfer에러
0
733
5
transcation, contract api 에러
0
283
0
16.02 설치 관련
0
412
2
안녕하세요 질문드립니다
0
317
2
eosjs@16.0.9 버전으로 하면 에러가 나네요...
0
284
0
transfer.js를 그대로 따라했는데 안되네요
0
296
1
기린넷에 계정이 안만들어집니다.
0
280
1

