masmovil / cucumber-testcafe

Cucumber with testcafe integration
MIT License
6 stars 4 forks source link

error TS4090: Conflicting definitions for 'node' installing cucumber-testcafe #12

Open johnwebbcole opened 4 years ago

johnwebbcole commented 4 years ago

I'm getting an error when installing cucumber-testcafe.

npm i -D cucumber-testcafe
npm WARN deprecated core-js@1.2.7: core-js@<2.6.8 is no longer maintained. Please, upgrade to core-js@3 or at least to actual version of core-js@2.

> core-js@2.6.10 postinstall /Users/wtf8yn/src/test/cuctest/node_modules/@babel/runtime-corejs2/node_modules/core-js
> node postinstall || echo "ignore"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

> core-js@2.6.10 postinstall /Users/wtf8yn/src/test/cuctest/node_modules/babel-register/node_modules/core-js
> node postinstall || echo "ignore"

> cucumber-testcafe@0.0.17 postinstall /Users/wtf8yn/src/test/cuctest/node_modules/cucumber-testcafe
> npm run build

> cucumber-testcafe@0.0.17 build /Users/wtf8yn/src/test/cuctest/node_modules/cucumber-testcafe
> npx tsc -p tsconfig.json

error TS4090: Conflicting definitions for 'node' found at '/Users/wtf8yn/src/test/cuctest/node_modules/@types/node/ts3.2/index.d.ts' and '/Users/wtf8yn/src/test/cuctest/node_modules/testcafe/node_modules/@types/node/ts3.2/index.d.ts'. Consider installing a specific version of this library to resolve the conflict.

Found 1 error.

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! cucumber-testcafe@0.0.17 build: `npx tsc -p tsconfig.json`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the cucumber-testcafe@0.0.17 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/wtf8yn/.npm/_logs/2019-11-28T22_15_51_001Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! cucumber-testcafe@0.0.17 postinstall: `npm run build`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the cucumber-testcafe@0.0.17 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/wtf8yn/.npm/_logs/2019-11-28T22_15_52_810Z-debug.log

A quick search on the error turns up one possible solution about making @types/node a peer dependency. https://stackoverflow.com/questions/56690600/resolve-conflicting-definitions-for-node-ts4090-error-in-vs-2017

anthanh commented 4 years ago

hey! thanks for the info @johnwebbcole

anthanh commented 4 years ago

new version available v0.0.20