Skip to content

[🐛 Bug]: error while building website on windows machine #13651

@amardeep2006

Description

@amardeep2006

Have you read the Contributing Guidelines on issues?

WebdriverIO Version

latest

Node.js Version

20

Mode

Standalone Mode

Which capabilities are you using?

No response

What happened?

I have followed the instructions to build website locally and facing this error.
Notice the incorrect path C:\C:\

[Error: ENOENT: no such file or directory, mkdir 'C:\C:\Work\wdio\webdriverio\website\community\events'] {
errno: -4058,
code: 'ENOENT',
syscall: 'mkdir',
path: 'C:\C:\Work\wdio\webdriverio\website\community\events'
}

This needs fix in 2 files electronDocs.ts and eventDocs.ts .

What is your expected behavior?

It should start the website locally. I can try sending a PR if you want.

I think it can be fixed by changing this line

const __dirname = path.dirname(new URL(import.meta.url).pathname)
to
const __dirname = path.dirname(url.fileURLToPath(import.meta.url))

How to reproduce the bug.

cd website

pnpm install

pnpm start

Relevant log output

Applying custom fixes for @sap_oss/wdio-qmate-service
Generated docs for @sap_oss/wdio-qmate-service
Downloading: https://raw.githubusercontent.com/udarrr/wdio-robonut-service/main/README.md
Generated docs for wdio-robonut-service
Downloading: https://raw.githubusercontent.com/mauriciolauffer/wdio-qunit-service/main/README.md
Generated docs for wdio-qunit-service
Downloading: https://raw.githubusercontent.com/webdriverio/expect-webdriverio/main//docs/API.md
Downloading: https://raw.githubusercontent.com/webdriverio/expect-webdriverio/main//docs/Types.md
Downloading: https://raw.githubusercontent.com/webdriverio/expect-webdriverio/main//docs/Extend.md

//////////////////////////////////////////////////
Generate Event Docs
//////////////////////////////////////////////////
[Error: ENOENT: no such file or directory, mkdir 'C:\C:\Work\wdio\webdriverio\website\community\events'] {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'mkdir',
  path: 'C:\\C:\\Work\\wdio\\webdriverio\\website\\community\\events'
}ELIFECYCLECommand failed with exit code 1.

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