Ask coding questions

← Back to all posts
TypeError: repl.User is not a constructor
h
ch1ck3n

im using rayahn's replit api and did one of the samples code and I got an error:

any help? I'm new to nodejs

Answered by Coder100 [earned 5 cycles]
View Answer
Voters
ch1ck3n
Comments
hotnewtop
Coder100

you forgot to make an api

ch1ck3n
Coder100

right
you forgot to import it
so rename to
repl.ReplAPI @ch1ck3n

ch1ck3n
Coder100

oh i see

@ch1ck3n

ch1ck3n

@Coder100 tried that already

same error

can this might be the question even the cookie can't answer??? :O

Coder100

oh right
repl.default ffffff @ch1ck3n

ch1ck3n

@Coder100 the cookie does it again

Coder100

lmao @ch1ck3n

Coder100

i forgot ray assumed we would use mjs :barf: @ch1ck3n

ch1ck3n

o

Coder100

well
get the lib docs lol