API 조회에서 에러가 납니다.
289
작성한 질문수 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 버젼으로 진행하셔야되요.
존재하지 않는 일기 url입력 시 alert이 두 번 떠요
0
18
1
useState 직접 구현 부분에서 질문이 있습니다.
1
25
1
학습을 하고 블로그에 정리를 해도 괜찮을까요?
1
27
1
교재(3쇄)와 강의 내용 문의
0
30
2
섹션2번 부분 강의 화면이 잘 못된것 같아서 문의합니다.
0
23
1
call stack 표현이 잘못표현된것이 아닌가요?
0
66
2
React 와 Virtual DOM 의 이야기 영상 실행이 안됩니다.
0
34
1
일반 강의와 차이점?
1
53
1
!= 연산자의 역할
0
35
1
중요하진 않지만 설명하신부분에서 안된부분..
1
37
1
강의 듣는 순서가 어떻게 되나요?
0
50
1
stopPropagation()에 대해서 질문 있습니다.
0
50
2
12.13) 하단 여백 스타일링 관련 질문 드립니다.
0
65
2
27강 Context내 RSC 사용 관련 문의
0
85
3
혹시 다음 강의 제작 예정된 것들이 있을까요?
0
81
1
mainnet transaction
0
300
1
소리가 너무 작아요
0
268
0
transfer에러
0
733
5
transcation, contract api 에러
0
282
0
16.02 설치 관련
0
410
2
안녕하세요 질문드립니다
0
315
2
eosjs@16.0.9 버전으로 하면 에러가 나네요...
0
283
0
transfer.js를 그대로 따라했는데 안되네요
0
293
1
기린넷에 계정이 안만들어집니다.
0
280
1





