[turborepo] Turborepo starter - eslint error when using process #5802
Labels
area: examples
Improvements or additions to examples
kind: bug
Something isn't working
owned-by: turborepo
What version of Turborepo are you using?
1.10.13
What package manager are you using / does the bug impact?
pnpm
What operating system are you using?
Mac
Describe the Bug
Linting error when building with a process.env definition:
Error: 'process' is not defined. no-undef
My first time using Turborepo, pretty sure I could edit the ESlint config myself, but assume this isn't intentional or I'm missing something?
Looking at the docs it seems like
process.env
is the correct way to use environment variables:https://turbo.build/pack/docs/features/environment-variables#processenv
Expected Behavior
No linting error
To Reproduce
npx create-turbo@latest
web
folder create.env.local
variablesturbo.json
build pipelinepage.tsx
to test:turbo build
Reproduction Repo
https://github.com/JohnGemstone/turborepo-linterror/
The text was updated successfully, but these errors were encountered: