Is there a way to use this library with import
instead of require()
?
#1416
-
I have a small project I am working on and when I try: import ripple from 'ripple-lib';
const api = new ripple.RippleAPI({
server: 'wss://s1.ripple.com' // Public rippled server
}); I get an error saying: |
Beta Was this translation helpful? Give feedback.
Answered by
intelliot
Jul 29, 2021
Replies: 1 comment
-
@asimjb1200 the import {RippleAPI} from 'ripple-lib';
const api = new RippleAPI({
server: 'wss://s1.ripple.com' // Public rippled server
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
intelliot
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@asimjb1200 the
ripple
object is only used for the browser build of this library. When using Node.js, instead try: