← Back to Discord Forum

Cannot find name 'process'. error - Best way to fix

cmclellan1986posted in #help-playwright
Open in Discord

Has anyone solved the following issue: Cannot find name 'process'. Do you need to install type definitions for node? Try npm i --save-dev @types/node

I know from a bit of googling that I should add it as a depency into a ts.config but we don't have that when you initially install playwright.

I do see that there was a fix but wasn't sure when it was released.

This thread is trying to answer question "How can I resolve the 'Cannot find name 'process'' error when type definitions for node may need to be installed?"

2 replies

installing @types/node should solve that

Yeah process is a global from Node.js, by installing @types/node you automatically get this global.

Related Discord Threads

AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email luc@ray.run.