Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fresh start - failed to build #11

Open
omarshah0 opened this issue Jun 21, 2024 · 6 comments
Open

Fresh start - failed to build #11

omarshah0 opened this issue Jun 21, 2024 · 6 comments

Comments

@omarshah0
Copy link

building...
app/handlers/landing.go:4:2: package learn-superkit/app/views/landing is not in std (/Users/shah/go/pkg/mod/golang.org/[email protected]/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/[email protected]/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

@anthdm
Copy link
Owner

anthdm commented Jun 21, 2024

Did you tried with a go mod tidy or go get -u ./...?

@omarshah0
Copy link
Author

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/[email protected]/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/[email protected]/src/learn-superkit/app/views/landing)

@duyngha
Copy link

duyngha commented Jun 22, 2024

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

@anthdm
Copy link
Owner

anthdm commented Jun 22, 2024

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

@0xffffa
Copy link

0xffffa commented Jun 23, 2024

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/[email protected]/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/[email protected]/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!

@Zate
Copy link

Zate commented Jun 27, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants