question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

In Compatibility with node 13.5

See original GitHub issue

Describe your question with as much detail as possible Unable to run tests with node 13 as wdio-sync fibers are not getting loaded, got below log while execution:

2019-12-24T01:32:09.621Z DEBUG @wdio/sync: Couldn't load fibers package for Node v10 and above
2019-12-24T01:32:09.624Z DEBUG @wdio/sync: Couldn't load fibers package for Node v8

Tried uninstalling and installing all packages with latest version but no luck.

Environment (please complete the following information):

  • WebdriverIO version: 5.18.0
  • Mode: WDIO Testrunner
  • If WDIO Testrunner, running sync/async: sync
  • Node.js version: 13.5.0
  • NPM version: 6.13.4
  • Browser name and version: Chrome 79
  • Platform name and version: MAC
  • Additional wdio packages used (if applicable):
     "@wdio/cli": "5.18.1",
    "@wdio/cucumber-framework": "5.16.15",
    "@wdio/local-runner": "5.18.0",
    "@wdio/reporter": "5.15.2",
    "@wdio/spec-reporter": "5.16.11",
    "@wdio/sync": "5.17.0",

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:22 (9 by maintainers)

github_iconTop GitHub Comments

3reactions
kajmagnuscommented, Jun 27, 2022

@DenysBarkan and others — only this: "fibers": "^5.0.0" didn’t work for me, because Webdriverio v6 depends on Fibers v4. If you just add Fibers v5, it’ll get installed, but Webdriverio continues using v4. (As far as I’ve understoold, looking at yarn.lock.)

But by allso adding a "resolutions": ... entry to force Webdriverio to use Fibers v5, sync started working for me with Nodejs 14.

Here’s my package.json:

{
  ...
  "devDependencies": {
    "@wdio/cli": "=6.10.10",
    ...
    "fibers": "v4.x doesn't work with Nodejs 14, which Ty uses — v12 is EOL (and odd versions like v13 are unstable).",
    "fibers": "5.0.1",
    ...
  },
  "resolutions": {
    "fibers": "Webdriver.io 6 tries to use Fibers 4.x.",
    "fibers": "5.0.1"
  }
}

@christian-bromann

we recommend to switch to async

Yes :- ) I’ve started, however, still about 180 Webdriverio v6 tests left to migrate to v7. About 1 whole week of work. It’s nice that now I can do this a little bit at a time (since I got v6 working with Nodejs 14) instead of all at once. Webdriver is really nice b.t.w. the best e2e test framework I’ve used.

2reactions
DenysBarkancommented, Jan 19, 2021
"node -v" : "v14.15.4"
"@wdio/cli": "^6.6.6"

returns the exception : "DEBUG @wdio/sync: Couldn't load fibers package for Node v10 and above"

instead of the working flow

"node -v" : "v12.20.1"
"@wdio/cli": "^6.6.6"

works without any additional messages.

The downgrade of the node to v12 solves the problem with the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Previous Releases - Node.js
Version Date V8 npm NODE_MODULE_VERSION Node.js 19.3.0 2022‑12‑14 10.8.168.21 9.2.0 111 Downloads C... Node.js 19.2.0 2022‑11‑29 10.8.168.20 8.19.3 111 Downloads C... Node.js 19.1.0 2022‑11‑14 10.7.193.20 8.19.3...
Read more >
node - npm
Start using node in your project by running `npm i node`. There are 545 other projects in the npm registry using node. ......
Read more >
Compatibility and requirements for the Node.js agent
The Node.js agent is compatible with the following operating systems: Linux; SmartOS; macOS 10.7 and higher; Windows Server 2008 and higher The following...
Read more >
The engine "node" is incompatible with this module
In my case, I am using yarn workspaces and some of the modules in the package.json files in the workspaces might require foo...
Read more >
Node.js ES2015/ES6, ES2016 and ES2017 support
Yes. Yes Yes. Yes Error. Error Error. Error Error. Error Error. Error function() function() function() function() function() function() function() function() function() function() function() function() function() function()...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found