You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import * as c from "@open-rpc/client-js";
const transport = new c.HTTPTransport("http://localhost:8545");
const client = new c.Client(new c.RequestManager([transport]));
const result = client.request({method: "addition", params: [2, 2]});
// => { jsonrpc: '2.0', id: 1, result: 4 }
webpack error appears:
ERROR in ./node_modules/@open-rpc/client-js/build/index.js 7:39-66
Module not found: Error: Can't resolve './RequestManager' in 'E:\BABYLONJS\node_modules@open-rpc\client-js\build'
@ ./index.ts 1:0-41 2:20-35 3:17-25 3:30-46
ERROR in ./node_modules/@open-rpc/client-js/build/index.js 9:46-91
Module not found: Error: Can't resolve './transports/EventEmitterTransport' in 'E:\BABYLONJS\node_modules@open-rpc\client-js\build'
@ ./index.ts 1:0-41 2:20-35 3:17-25 3:30-46
ERROR in ./node_modules/@open-rpc/client-js/build/index.js 11:38-75
Module not found: Error: Can't resolve './transports/HTTPTransport' in 'E:\BABYLONJS\node_modules@open-rpc\client-js\build'
@ ./index.ts 1:0-41 2:20-35 3:17-25 3:30-46
ERROR in ./node_modules/@open-rpc/client-js/build/index.js 13:43-85
Module not found: Error: Can't resolve './transports/WebSocketTransport' in 'E:\BABYLONJS\node_modules@open-rpc\client-js\build'
@ ./index.ts 1:0-41 2:20-35 3:17-25 3:30-46
ERROR in ./node_modules/@open-rpc/client-js/build/index.js 15:51-101
Module not found: Error: Can't resolve './transports/PostMessageWindowTransport' in 'E:\BABYLONJS\node_modules@open-rpc\client-js\build'
@ ./index.ts 1:0-41 2:20-35 3:17-25 3:30-46
ERROR in ./node_modules/@open-rpc/client-js/build/index.js 17:51-101
Module not found: Error: Can't resolve './transports/PostMessageIframeTransport' in 'E:\BABYLONJS\node_modules@open-rpc\client-js\build'
@ ./index.ts 1:0-41 2:20-35 3:17-25 3:30-46
ERROR in ./node_modules/@open-rpc/client-js/build/index.js 19:14-32
Module not found: Error: Can't resolve './Error' in 'E:\BABYLONJS\node_modules@open-rpc\client-js\build'
@ ./index.ts 1:0-41 2:20-35 3:17-25 3:30-46
ERROR in ./node_modules/@open-rpc/client-js/build/index.js 21:31-50
Module not found: Error: Can't resolve './Client' in 'E:\BABYLONJS\node_modules@open-rpc\client-js\build'
@ ./index.ts 1:0-41 2:20-35 3:17-25 3:30-46
The text was updated successfully, but these errors were encountered:
I am unable to use the library in typescript:
webpack error appears:
ERROR in ./node_modules/@open-rpc/client-js/build/index.js 7:39-66
Module not found: Error: Can't resolve './RequestManager' in 'E:\BABYLONJS\node_modules@open-rpc\client-js\build'
@ ./index.ts 1:0-41 2:20-35 3:17-25 3:30-46
ERROR in ./node_modules/@open-rpc/client-js/build/index.js 9:46-91
Module not found: Error: Can't resolve './transports/EventEmitterTransport' in 'E:\BABYLONJS\node_modules@open-rpc\client-js\build'
@ ./index.ts 1:0-41 2:20-35 3:17-25 3:30-46
ERROR in ./node_modules/@open-rpc/client-js/build/index.js 11:38-75
Module not found: Error: Can't resolve './transports/HTTPTransport' in 'E:\BABYLONJS\node_modules@open-rpc\client-js\build'
@ ./index.ts 1:0-41 2:20-35 3:17-25 3:30-46
ERROR in ./node_modules/@open-rpc/client-js/build/index.js 13:43-85
Module not found: Error: Can't resolve './transports/WebSocketTransport' in 'E:\BABYLONJS\node_modules@open-rpc\client-js\build'
@ ./index.ts 1:0-41 2:20-35 3:17-25 3:30-46
ERROR in ./node_modules/@open-rpc/client-js/build/index.js 15:51-101
Module not found: Error: Can't resolve './transports/PostMessageWindowTransport' in 'E:\BABYLONJS\node_modules@open-rpc\client-js\build'
@ ./index.ts 1:0-41 2:20-35 3:17-25 3:30-46
ERROR in ./node_modules/@open-rpc/client-js/build/index.js 17:51-101
Module not found: Error: Can't resolve './transports/PostMessageIframeTransport' in 'E:\BABYLONJS\node_modules@open-rpc\client-js\build'
@ ./index.ts 1:0-41 2:20-35 3:17-25 3:30-46
ERROR in ./node_modules/@open-rpc/client-js/build/index.js 19:14-32
Module not found: Error: Can't resolve './Error' in 'E:\BABYLONJS\node_modules@open-rpc\client-js\build'
@ ./index.ts 1:0-41 2:20-35 3:17-25 3:30-46
ERROR in ./node_modules/@open-rpc/client-js/build/index.js 21:31-50
Module not found: Error: Can't resolve './Client' in 'E:\BABYLONJS\node_modules@open-rpc\client-js\build'
@ ./index.ts 1:0-41 2:20-35 3:17-25 3:30-46
The text was updated successfully, but these errors were encountered: