webdriverio icon indicating copy to clipboard operation
webdriverio copied to clipboard

[🐛 Bug]: 'is-stream' latest version which necessitates 'import' added as dependency to tempy package

Open perillai opened this issue 3 years ago • 1 comments

Have you read the Contributing Guidelines on issues?

WebdriverIO Version

7.20.7

Node.js Version

16.15.1

Mode

Standalone Mode

Which capabilities are you using?

No response

What happened?

Getting 'is-stream' issue while running unit tests. Currently, is-stream v3 wants import to be used instead of require. But, all across our project, I am able to see v2, but the npm 'tempy' has 'is-stream' 3 as dependency. Because of this, wherever we require tempy, it creates "SyntaxError: Named export 'isStream' not found. The requested module 'is-stream' is a CommonJS module, which may not support all module.exports as named exports." Currently, two tests under wdio-allure-reporter is failing because of this. Is this an issue faced by me alone? or do others face this? If so, can we rollback the tempy version to 1?

What is your expected behavior?

No Unit test issue

How to reproduce the bug.


### Relevant log output

```typescript
SyntaxError: Named export 'isStream' not found. The requested module 'is-stream' is a CommonJS module, which may not support all module.exports as named exports.

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • [X] I have searched the existing issues

perillai avatar Aug 08 '22 17:08 perillai

Can you provide a reproducible example?

christian-bromann avatar Aug 09 '22 20:08 christian-bromann

Closing due to inactivity

christian-bromann avatar Aug 20 '22 11:08 christian-bromann