Ask coding questions

← Back to all posts
Why is our project throwing an error.
AneeshKotvali1 (9)

Hi! Me and my friend are making a multiplayer chess. So, I was expecting that my project will produce a new tab and say, Chess at the top. however, it is throwing an error.

Can somebody help?

Comments
hotnewtop
Coder100 (19280)

Replit runs index.js only in node repls. Do you mean to make it in a python repl? Or do you mean to use the bash language? (Node has terrible support for python, it is for js after all)

AneeshKotvali1 (9)

@Coder100, I basically want to use the socket io package to make servers for our chess game. If that's the case, then I think it should be a python repl.

Coder100 (19280)

@AneeshKotvali1 as you may know the chess package can't exactly interact with the browser?

Coder100 (19280)

yeah, so you might have to rethink how you do things, either write it all in nodejs, or write it all in python for your backend, and make your own UI for frontend. @AneeshKotvali1