Skip to content

[🐛 Bug]: @wdio/cli CJS build SyntaxError #10198

@DirkoOdendaal

Description

@DirkoOdendaal

Have you read the Contributing Guidelines on issues?

WebdriverIO Version

V8.8.2

Node.js Version

v18.12.0

Mode

Standalone Mode

Which capabilities are you using?

No response

What happened?

When using the CJS import on @wdio/cli then you get the error:

node_modules/@wdio/cli/build/cjs/index.js:1
export class Launcher {
^^^^^^

SyntaxError: Unexpected token 'export'

What is your expected behavior?

Expect that importing the @wdio/cli CJS build would result in no SyntaxErrors.

How to reproduce the bug.

To reproduce the bug you need to import the @wdio/cli CJS build and execute tests

Relevant log output

None

Code of Conduct

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

Is there an existing issue for this?

  • I have searched the existing issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions