playwright.config.ts uses `process.env.*` for which VS Code IntelliSense shows: Cannot find name 'process'

Open Beginner friendly
#444 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
node.js, playwright, typescript

Research direction

Start by opening playwright.config.ts in the repo root and confirming the process.env references, then check tsconfig.json for a types field and package.json for whether @types/node is already a devDependency. The fix is either adding @types/node or including node in the compiler types, depending on which the project prefers. Done means playwright.config.ts shows no IntelliSense errors in VS Code while the build still passes.

Written by the indexing model from the issue text.

Description

01 type: bug 30 needs: triage

Describe the bug
playwright.config.ts file in root repo directory contains references to properties of process.env for which VS Code TypeScript IntelliSense shows:

Cannot find name 'process'. Do you need to install type definitions for node? Try npm i --save-dev @types/node and then add 'node' to the types field in your tsconfig.ts (2591)

To Reproduce
Steps to reproduce the behavior:

  1. Open playwright.config.ts in Code
  2. See the red underlines
  3. See their error tooltip:

Cannot find name 'process'. Do you need to install type definitions for node? Try npm i --save-dev @types/node and then add 'node' to the types field in your tsconfig.ts(2591)

Expected behavior
No errors, just informational IntelliSense tooltips for process and its contents.

Screenshots
Code_YRGkS8qiiC

Software (please complete the following information):

  • OS: WSL 2
  • Browser [e.g. firefox, chrome, safari] N/A
  • Plone Aurora Version [e.g. 18.4.0] 8d0c4de1013aceb8f976d2c6af17b157b861356f
  • Plone Version [e.g. 6.1.0] N/A
  • Plone REST API Version [e.g. 9.1.0] N/A
Dominant language
JavaScript
Stars
10
Forks
9
Avg merge
4d 7h
Merged PRs (30d)
54

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from plone/aurora

All issues in plone/aurora

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.