Skip to content
← Back to Community
Change repl language
Profile icon
AndyKillorin

An html project that I imported from github is trying to run in bash. How do I change the mode to html+css+js? Thanks!

Voters
Profile icon
NozukoIkkunInfe
Profile icon
tavoopitz
Profile icon
KetsiaTendayi
Profile icon
BallaBallaPompa
Profile icon
Team-wordword
Profile icon
Muhammad-Muntas
Profile icon
TyphaineCORRE
Profile icon
wtang2904
Profile icon
eipark
Profile icon
haroldsikkema
Comments
hotnewtop
Profile icon
ernestjfowler

Why it appears to be that when you import an HTML project from GitHub? It distinguishes it appropriately as HTML; however, I think it runs Bash. This isn't at all instinctive. Before bringing it in, I needed to make a .replit document in my GitHub repo physically. It appears to be a bug to me.

Profile icon
owino

I have the same problem

Profile icon
Vandesm14

The only way to do this is to create an HTML repl and manually transfer the files by hand. HTML repos do now import into repl.it correctly, yet.

Profile icon
suttar2

Is this still true? @Vandesm14

Profile icon
Vandesm14

@suttar2 Nope, Github intergation works with HTML repls now

Profile icon
suttar2

Thanks for the reply @Vandesm14. I realized it was automatically running my project as bash and I needed to change my replit launch file to say

'
language = "html"
run = "index.html"

'

Profile icon
owino

@suttar2 thanks

Profile icon
GusReiber

@Vandesm14 It seems to now not work again since the nix stuff.

Profile icon
Vandesm14
Profile icon
Nashorn1

i have an html project, its imported as node and complaining about main.sh

Profile icon
vishwak

@Nashorn1
Dude main.sh isn’t node! Lol it’s bash

Profile icon
haroldsikkema

It seems that when you import an HTML project from GitHub, it detects it properly as HTML, but then runs Bash instead. This is not at all intuitive. I actually had to manually create a .replit file in my GitHub repo before importing. It seems like a bug to me.

Profile icon
ykessler

Just dealt with this. Don't think you can change an existing repl type but all you have to do is create a new repl of type HTML, CSS, JS, and then click 'Import from Github'.

And I think you also may need to create/change the .replit file to:

language = "html" run = "index.html"
Profile icon
MitchPF

yes this keeps happening on node too. huge time waster, bug.

Profile icon
356734

Why it appears to be that when you import an HTML project from GitHub? It distinguishes it appropriately as HTML; however, I think it runs Bash. This isn't at all instinctive. Before bringing it in, I needed to make a .replit document in my GitHub repo physically. It appears to be a bug to me.