Okay, this is weird… I’ve been invited to two Repls. One is a NodeJS Express Repl, and the other is a Python Flask Repl with vanilla JS in the
static/scripts/ folder. In both of them, I have gotten a
ReferenceError for a function that has been defined earlier in the file… The Express one worked literally 5 seconds before I got the error, all I changed was a simple if statement, which has nothing to do with the line of code I got the error on…
Screenshots, links, or other helpful context:
Error I’m getting, don’t think it’ll help though…
/home/runner/Fall-Hackathon-2023/index.js:65 const submissions = await getSubmission(); ^ ReferenceError: getSubmission is not defined at /home/runner/Fall-Hackathon-2023/index.js:65:23 at Layer.handle [as handle_request] (/home/runner/Fall-Hackathon-2023/node_modules/express/lib/router/layer.js:95:5) at next (/home/runner/Fall-Hackathon-2023/node_modules/express/lib/router/route.js:144:13) at Route.dispatch (/home/runner/Fall-Hackathon-2023/node_modules/express/lib/router/route.js:114:3) at Layer.handle [as handle_request] (/home/runner/Fall-Hackathon-2023/node_modules/express/lib/router/layer.js:95:5) at /home/runner/Fall-Hackathon-2023/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/home/runner/Fall-Hackathon-2023/node_modules/express/lib/router/index.js:346:12) at next (/home/runner/Fall-Hackathon-2023/node_modules/express/lib/router/index.js:280:10) at /home/runner/Fall-Hackathon-2023/node_modules/body-parser/lib/read.js:137:5 Node.js v18.16.1 repl process died unexpectedly: exit status 1
And this has only been happening kinda recently (maybe because I started using JS more recently lol?)
For the second Repl I linked it’s happened twice, on different functions.