I imported the RoVer bot from GitHub, and it doesn’t seem to be loading right. It is stuck doing this:
I am not seeing any errors in output. The project name is test-verification. I have tried refreshing the project already.
I imported the RoVer bot from GitHub, and it doesn’t seem to be loading right. It is stuck doing this:
I am not seeing any errors in output. The project name is test-verification. I have tried refreshing the project already.
Yes. I am getting two.
(node:2644) UnhandledPromiseRejectionWarning: #
(node:2644) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:2644) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
And then:
No Node version was specified; we are using default version 10. You can change this in package.json: https://glitch.com/help/node/
Can you place this code somewhere in your src/index.js
?
const listener = app.listen(process.env.PORT, function() {
console.log("Your app is listening on port " + listener.address().port);
});
“app.listen is not a function”
Nevermind. Accidentally put ; in front of express instead of (). It’s working now. Thanks.
Sure, no problem.