Getting error for line that doesn't exist
I'm working on a sort of reddit clone, and I can share the whole code, but it has account info so I can't share the whole project. However, for some reason it's giving me an error for a line that doesn't even exist. Here is the error code:
/home/runner/project4a/index.js:323 function getFileData ^^^^^^^^^^^ SyntaxError: Unexpected end of input
I was using a function to update json files but then deleted it, but it's saying it's still there. How can I get rid of this?
You should check the file index.js and be sure there's nothing at this line.
I cannot help you more than that without the file sorry :(
Note that you can use a .env file to store the accounts or the tokens !
If you found my answer helpful, you can mark it as the answer or upvote it :)
Please, do not hesitate to ask in comments if you have any question
Replmail is a cool mail system create by MrEconomical, give it a try ;)
Yep, this is an ad ^