-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[turborepo] Starter produces an error #3797
Comments
Worthy of note: I'm pretty sure how to fix this, but that's beside the point. The point is that the starter should work 'out of the box', no errors. So it should still be fixed in the starter package as well. |
We're setting |
Or include cross-env to make it work everywhere 😊 |
@thany we talked about |
All good and well, and I've briefly read through it to make sure I have some sort of understanding of how turbo handles environment variables. It seems that we are confusing including already-set variables and setting variables with a value in the first place. Turbo.json appears to only do the former, whereas cross-env is responsible for the latter. So unless you can point me (and everyone else 😉) to a way to set an environment variable with a value in turbo.json, or any other built-in thing without using cross-env, I'd be all ears. Other than that, I have no idea how to set any environment variable in a cross-platform manner, without the use of some sort of package like cross-env. The Linux syntax certainly won't work on Windows, that's for sure, and the Windows syntax doesn't work on Linux. Kind of the point why cross-env exists in the first place. |
What version of Turborepo are you using?
1.7.4
What package manager are you using / does the bug impact?
npm
What operating system are you using?
Windows
Describe the Bug
Running
npm run lint
after installing the starter, produces an error:Expected Behavior
No error. Don't use commands that don't exist, or install something to make it work.
To Reproduce
npm run lint
Reproduction Repo
No response
The text was updated successfully, but these errors were encountered: