Index.js not found

Question:

In one of my replit templates ,there is one in which It is saying indes.js not found after upgrade.
It consists of all the code i have been doing from a lot of time. Any help here would be appreciated

Replit Profile: https://replit.com/@ShikharAgarwal4

Could you post a link to the cover page of the Repl this issue is occurring in? This could help the community work with you to diagnose and resolve your issue.

2 Likes

I am having to same issue with one of my repls (created 2023-04-08).
URL: https://replit.com/@GoodVessel92551/Files-Not-Existing (I have changed the name)

@GoodVessel92551 you don’t seem to have any files. Try adding main.py like it says and try it.

His files sidebar is closed

@NateDhaliwal it says main.py doesn’t exist. Also when I went to the cover page and looked at files there weren’t any.

It used to have main.py

I can also not add any files because when I press the button there is no textbox to add it.

@GoodVessel92551 make a new topic for bug reports related to this.

Try running touch main.py in the Shell tab, that should forcibly recreate it.

This does not work I think that the repl is broken.

Odd. What happens if you show hidden files (if you can find the button that is)? Also, what does ls show in the Shell?

Edit: from the cover page, there appears to be a main.py file, albeit empty. Try killing1 in the Shell, and doing a cache refresh as well (Ctrl+Shift+R).

The main.py file loads but it is not in the sidebar even if I show all files

Yea, it looks like your Repl is broken. Did you delete replit.nix or .replit? Could you try using ls -a as @Firepup650 said?

I did not delete anything and when I run ls -a in the shell is shows:
image

Wait, main.py does exist? This is super odd, but your Repl is basically useless with .replit or replit.nix anyway, which for some reason were removed?

Can you check if main.py has any contents by using cat main.py?

Only because of the touch command from earlier.

2 Likes

Ah yes, that’s a good point. My bad :laughing:

Anyway though, you still have the Linux terminal if you really don’t want to create a new Repl, you can just use nano main.py and run the script using python main.py, you won’t be able to install any Nix packages, or use any pip dependencies though.

Edit: Nevermind, I don’t think you can actually use python because replit.nix was removed.

1 Like

This is not the only repl of mine that is having this problem.

Ok so I just went through a significant amount of my repls and 15 contain no files this means that I have lost code meaning that I no longer have these projects. Can some other people check there repls to see if it is just me.