Fresh start - failed to build
Opened this issue · 6 comments
building...
app/handlers/landing.go:4:2: package learn-superkit/app/views/landing is not in std (/Users/shah/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.4.darwin-arm64/src/learn-superkit/app/views/landing)
app/routes.go:5:2: package learn-superkit/app/views/errors is not in std (/Users/shah/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.4.darwin-arm64/src/learn-superkit/app/views/errors)
failed to build, error: exit status 1
running...
/bin/sh: tmp/bin/main: No such file or directory
Process Exit with Code: 127
go version go1.22.4 darwin/arm64
Model Name: MacBook Pro
Model Identifier: Mac14,9
Model Number: MPHE3ZS/A
Chip: Apple M2 Pro
Total Number of Cores: 10 (6 performance and 4 efficiency)
Memory: 16 GB
System Firmware Version: 10151.121.1
OS Loader Version: 10151.121.1
Serial Number (system): FXL2C7YL21
Hardware UUID: DEAF02ED-9A78-50C3-B6BF-D336FF0D66F0
Provisioning UDID: 00006020-000A3112366B401E
Activation Lock Status: Enabled
Did you tried with a go mod tidy
or go get -u ./...
?
Yeah, here's the output:
❯ go get -u ./...
warning: ignoring symlink /Users/shah/Projects/learn-superkit/node_modules/esbuild
warning: ignoring symlink /Users/shah/Projects/learn-superkit/node_modules/tailwindcss
go: downloading github.com/go-chi/chi/v5 v5.0.14
go: downloading github.com/anthdm/superkit v0.0.0-20240622052611-30be5bb82e0d
go: learn-superkit/app imports
learn-superkit/app/views/errors: package learn-superkit/app/views/errors is not in std (/Users/shah/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.4.darwin-arm64/src/learn-superkit/app/views/errors)
go: learn-superkit/app/handlers imports
learn-superkit/app/views/landing: package learn-superkit/app/views/landing is not in std (/Users/shah/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.4.darwin-arm64/src/learn-superkit/app/views/landing)
It could be due to your templ
version. It should be the latest version. The latest version is 0.2.707 https://github.com/a-h/templ/releases/tag/v0.2.707 @omarshah0
You can also try with go clean -cachemod && go get -u ./...
. I need to find a good way fix these dependency issues coming from bootstrap
folder
Really would like to use this library, get the same output on Linux, Ubuntu 24.04
go: master/app imports master/app/views/errors: package master/app/views/errors is not in std (/home/gabe/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.4.linux-amd64/src/master/app/views/errors) go: master/app/handlers imports master/app/views/landing: package master/app/views/landing is not in std (/home/gabe/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.4.linux-amd64/src/master/app/views/landing)
Are there any known solutions? I've tried upgrading templ, didn't seem to have an effect
On a side note: wonderful library I would love to use this and have been looking for a boilerplate in golang!
Hopefully this project is able to be project ready in the near future, would love to convert some of my startups to use this boilerplate, would absolutely give credit as well!
I had the same issue and had to actually install templ rather than just let go get -u install the package.
go install github.com/a-h/templ/cmd/templ@latest
I also discovered that if your nodejs is too low, you'll get some other errors. so I added some logic in my makefile to check for those things.