Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.


    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

Node.JS Could not load helper Playwright from module './helper/Playwright':

Tom313

New Coder
Hi,
I am trying to run CrossBrowser tests via jenkins and getting below issue - Could you please me with root cause of this issue (Could not load helper Playwright from module './helper/Playwright':) . i am new to node

Thanks,
Tom

Bash:
creating output directory: /opt/jenkins/workspace/test-dev/functional-output/cross-browser/reports/webkit_8679f40251903bd12fa4e75f737d9115_2
9
13:30:50  [2.webkit:webkit]
10
13:30:50  [2.webkit:webkit] Could not load helper Playwright from module './helper/Playwright':
11
13:30:50  Required modules are not installed.
12
13:30:50
13
13:30:50  RUN: npm install --save-dev playwright@^1.18
14
13:30:50  Error: Required modules are not installed.
15
13:30:50
16
13:30:50  RUN: npm install --save-dev playwright@^1.18
17
13:30:50      at createHelpers (/opt/jenkins/workspace/test-dev/.yarn/cache/codeceptjs-npm-3.4.1-f8c62c7a59-44f4b476e8.zip/node_modules/codeceptjs/lib/container.js:179:17)
18
13:30:50      at Function.create (/opt/jenkins/workspace/test-dev/.yarn/cache/codeceptjs-npm-3.4.1-f8c62c7a59-44f4b476e8.zip/node_modules/codeceptjs/lib/container.js:44:25)
19
13:30:50      at Codecept.init (/opt/jenkins/workspace/test-dev/.yarn/cache/codeceptjs-npm-3.4.1-f8c62c7a59-44f4b476e8.zip/node_modules/codeceptjs/lib/codecept.js:56:15)
20
13:30:50      at module.exports (/opt/jenkins/workspace/test-dev
 
Last edited by a moderator:
I have no idea what the .pnp.cjs file is, but if i search, it seems to have something to do with the yarn package manager. Are you using yarn or npm?
 
I've never used yarn before, I always use npm.
Is there a reason why you're using both yarn and npm, rather than only one of them?
 

New Threads

Latest posts

Buy us a coffee!

Back
Top Bottom