Go templ fail to build
rabinthapa1998
TRIALOP

2 years ago

I'm using go and templ but my application is seem to fail on build , i had tried different build options ,

currect setting:

root directory : /cmd

build command templ generate && go build -o out main.go

1 Replies

2 years ago

First, delete your nixpacks.toml file as its likely doing more harm than good at the moment.

Then, try setting your root directory back to the root, and then changing your build command to -

templ generate && go build -o out ./...

Loading...