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

Not able to run the project, says I am missing clerk and basehub env variables but they are there #396

Open
okanji opened this issue Jan 12, 2025 · 5 comments
Labels
bug Something isn't working

Comments

@okanji
Copy link

okanji commented Jan 12, 2025

Describe the bug
A clear and concise description of what the bug is.

next-forge version
latest

To Reproduce
Steps to reproduce the behavior:
Follow the installation guide and set up .env variables.
try run the project

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
image
image

Desktop (please complete the following information):

  • OS: MacOS
  • Browser: Chrome
@okanji okanji added the bug Something isn't working label Jan 12, 2025
@julianbenegas
Copy link
Contributor

hey @okanji, do you have the env variables in an .env.local, or what's the file name you placed them on?

@okanji
Copy link
Author

okanji commented Jan 14, 2025 via email

@haydenbleasel
Copy link
Owner

@okanji Can you specifically tell us the paths of your .env.local and .env files?

@okanji
Copy link
Author

okanji commented Jan 19, 2025

Hi @haydenbleasel , yes here it is:

apps/app/.env.local

Image

apps/web/.env.local

Image

apps/api/.env.local

Image

packages/databse/.env

Image

packages/cms/.env.local

Image

I get the following errors:

Image Image

Note that these are the .env.local variables for clerk (I have replaced the publishing key just for this screenshot but the rest are as in the example):

Image

@barsketis
Copy link
Contributor

barsketis commented Feb 18, 2025

I am able to replicate this bug sometimes, but im not sure what is causing it to go away. I think turbo might be storing a cache if you tried building without the env's set across the whole process, for example the cms env or the web env. Turbo has some interesting behaviour for env's vercel/turborepo#8424

Here are some steps that might make it go away

clean the cms and web, then install from the parent repo

# cd into apps/web
pnpm clean

# cd into packages/cms
pnpm clean

# cd back to parent root folder
pnpm clean
pnpm i

# cd back to apps/web
pnpm dev

if that doesnt work try it in reverse

# from the main repo clean the parent install but dont install right away, instead install the subpackages first
pnpm clean

# cd into packages/cms
pnpm clean
pnpm i

# cd into apps/web
pnpm clean
pnpm i

# then see if the web project builds
pnpm dev

@haydenbleasel haydenbleasel changed the title Not able to run the project, says I am missing clerk and basshub env variables but they are there Not able to run the project, says I am missing clerk and basehub env variables but they are there Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants