Skip to content
← Back to Community
Editing ../config.json
Profile icon
sojs

I need to run babel to convert my JSX, but to do that I would need to edit the config.json, which is in the same directory as the repl itself, and therefore not listed under files. Can anyone tell me how to do it?

Answered by Coder100 [earned 5 cycles]
View Answer
Voters
Profile icon
sojs
Comments
hotnewtop
Profile icon
Coder100

just create a config.json file smh

Profile icon
sojs
Profile icon
Coder100

shake my head, @sojs

Profile icon
Coder100

um no it isn't

Profile icon
sojs

Ya it is. If you go into the terminal, type ls you get everything, the package.json, the yarn.lock, the .replit, and all the other files listed except config.json. change the directory: cd ../ and then ls you see the repls folder (the title of the repl), and config.json. @Coder100

image
It does not appear in the files:

image

Profile icon
Coder100

what happens if you create a config.json? @sojs

Profile icon
Coder100

I doubt anything from the root directory should affect your project in that way... @sojs

Profile icon
Coder100

I've never had to ever use the root directory, and the only time I have is when I made a mistake. @sojs

Profile icon
sojs

I found the solution, you were right, i just had to create [email protected]