Skip to content

[BUG] process.env - Cannot read properties of undefined (reading 'env') #1399

Open
@RareSecond

Description

Describe the bug
Using process.env.whatever in a danger file leads to a runtime error stating that process is undefined.

To Reproduce

  1. Create a dangerfile
  2. Add a reference to process.env
  3. See the error

Expected behavior
You should be able to access process.env

Screenshots
CleanShot 2023-08-17 at 08 08 11

Your Environment

software version
danger.js 11.2.0
node node:16 docker image
npm 7.11.0 (pnpm)
Operating System Gitlab CI

Additional context
Add any other context about the problem here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions