Ask coding questions

← Back to all posts
Change repl language
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
wtang2904
eipark
haroldsikkema
MeMasterMind
efemertcbgl
Benjo989
ykessler
PierreNEILLO
zoharfrom
piscitello284
Comments
hotnewtop
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.

suttar2

Is this still true? @Vandesm14

Vandesm14

@suttar2 Nope, Github intergation works with HTML repls now

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"

'

MikeOwino

@suttar2 thanks

Nashorn1

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

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.

MikeOwino

I have the same problem

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: