API 조회에서 에러가 납니다.
296
작성한 질문수 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 버젼으로 진행하셔야되요.
13. (App 2) 기본기 훈련 에서
0
10
1
챌린지 시작일 문의
0
12
0
2. 어떤 도구를 사용하는 것이 가장 유리할까? 강의 중
0
15
1
11차시 Antigravity IDE 설치 후
0
17
1
처음 에이전트 설정을 잘못 했을 경우 수정 하는 방법
0
15
1
5,6,7,8 내용이 없어요
0
14
1
ThemeProvider를 이용해서 NextThemeProvider를 따로 생성하여 Layout.tsx에 적용하는 이유는 뭘까요?
0
13
1
mission 09-01 을 수행할 수 없어요
0
19
1
Context API vs Zustand 그리고 Auth
0
34
2
순수 함수 / 순수 컴포넌트
0
22
1
css box-sizing 관련 질문
0
32
2
스니펫이 이상해요
0
32
2
Editor Component의 최적화 불가능 이슈
0
37
2
useCallback ⊂ useMemo
0
34
2
깃허브 저장소를 어디에 첨부하셨나요?
1
39
1
mainnet transaction
0
312
1
소리가 너무 작아요
0
275
0
transfer에러
0
761
5
transcation, contract api 에러
0
294
0
16.02 설치 관련
0
421
2
안녕하세요 질문드립니다
0
330
2
eosjs@16.0.9 버전으로 하면 에러가 나네요...
0
288
0
transfer.js를 그대로 따라했는데 안되네요
0
307
1
기린넷에 계정이 안만들어집니다.
0
290
1





