Additionally I’m having issues with the quick start authenticating
in the UI:
Object.fromEntries is not a function
In the console:
Uncaught (in promise) TypeError: Cannot read property 'sessionId' of null
at Object.authenticate [as click] (flow-
authenticate.js:44)
which maps to:
const [email, setEmail] = useState("")
const [passw, setPassw] = useState("")
const [errors, setErrors] = useState([])
const authenticate = async e => {
e.preventDefault()
const {errors, data} = await api.authenticate({email, passw})
if (DEBUG)
console.log("%capi.authenticate", "color:#0066ff;", {errors, data})
if (errors) setErrors(errors)
onAuth(data.authenticate.sessionId)
}
return html`
<form onSubmit=${authenticate}>
<small>${config.name}</small>
<h3>Authenticate</h3>
${!!errors.length &&
html`
<strong>Errors</strong>
<ul style="color:tomato;">
And the error coming back from dev-wallet GraphQL server is
{
"errors":[
{
"message":"Object.fromEntries is not a function",
"locations":[
{
"line":3,
"column":5
}
],
"path":[
"authenticate"
]
}
],
"data":{
"authenticate":null
}
}
Are you use any login/password?
The quick start labels the button as “Sign in / up” which I interpreted as meaning the auth / wallet form is for both creating an account (if it’s not a recognized email) or logging in (if it is).
If that’s not the case and indeed there is a pre set email/password to use with the FCL dev wallet I did not find it in any of the docs.
qvvg
July 17, 2020, 4:48pm
4
@lukehamilton this looks like a node version issue at first glance? What version of node are you using with the dev-wallet?
In your console you should be able to run something like this:
$ node -v
v13.7.0
I’m using the following.
❯ quickstart (master) ✘ node -v
v10.16.3
Is there a node version requirement?
When I switch to node 12 it works
v12.10.0
What version of node are you all using for development? So I can use the same one with these libraries.
makoto
July 26, 2020, 2:25pm
6
I am also following the readme of https://github.com/onflow/flow-js-sdk/tree/master/packages/fcl but wasn’t sure how to set username/password so I can run script but cannot run any transactions.