Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[🐛 Bug]: Is the gitpod environment broken? #12707

Open
3 tasks done
step21 opened this issue Apr 16, 2024 · 2 comments
Open
3 tasks done

[🐛 Bug]: Is the gitpod environment broken? #12707

step21 opened this issue Apr 16, 2024 · 2 comments
Labels
Bug 🐛 help wanted Issues that are free to take by anyone interested

Comments

@step21
Copy link

step21 commented Apr 16, 2024

Have you read the Contributing Guidelines on issues?

WebdriverIO Version

latest

Node.js Version

20.11.1

Mode

Standalone Mode

Which capabilities are you using?

-

What happened?

I clicked on "gitpod" in the README. Gitpod starts, but on startup an error is shown, and f.e. npm/pnpm install also doesn't work. Is there some special setup necessary?

What is your expected behavior?

I start gitpod. All the packages are installed and no error is shown.

How to reproduce the bug.

Start gitpod from the README. Select one of the available pod sizes. I tried small and large. I also tried github codespaces, but there it said the free ones are too small? Also kind of suprising.

Relevant log output

gitpod /workspace/webdriverio (main) $  HISTFILE=/workspace/.gitpod/cmd-3 history -r; {
> gp sync-await installation
> } && {
> node .gitpod/welcome.mjs
> }
installation done
node:internal/errors:490
    ErrorCaptureStackTrace(err);
    ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'chalk' imported from /workspace/webdriverio/.gitpod/welcome.mjs
    at new NodeError (node:internal/errors:399:5)
    at packageResolve (node:internal/modules/esm/resolve:794:9)
    at moduleResolve (node:internal/modules/esm/resolve:843:20)
    at defaultResolve (node:internal/modules/esm/resolve:1058:11)
    at nextResolve (node:internal/modules/esm/hooks:654:28)
    at Hooks.resolve (node:internal/modules/esm/hooks:309:30)
    at ESMLoader.resolve (node:internal/modules/esm/loader:312:26)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:172:38)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:76:40)
    at link (node:internal/modules/esm/module_job:75:36) {
  code: 'ERR_MODULE_NOT_FOUND'
}

Additionally, the pnpm version seems to be too old and I couldn't update it yet:

gitpod /workspace/webdriverio/packages/wdio-utils/src/node (main) $ pnpm i pnpm
 ERR_PNPM_UNSUPPORTED_ENGINE  Unsupported environment (bad pnpm and/or Node.js version)

Your pnpm version is incompatible with "/workspace/webdriverio".

Expected version: >=8.15.3
Got: 8.6.7

This is happening because the package's manifest has an engines.pnpm field specified.
To fix this issue, install the required pnpm version globally.

To install the latest version of pnpm, run "pnpm i -g pnpm".
To check your pnpm version, run "pnpm -v".

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
@step21 step21 added Bug 🐛 Needs Triaging ⏳ No one has looked into the issue yet labels Apr 16, 2024
@christian-bromann
Copy link
Member

Yeah, I haven't tested Gitpod in a while and we migrated from NPM to pnpm which might have caused this. I think it is worth fixing the gitpod.yml and update it to the current local setup.

@christian-bromann christian-bromann added help wanted Issues that are free to take by anyone interested and removed Needs Triaging ⏳ No one has looked into the issue yet labels Apr 18, 2024
@wdio-bot
Copy link
Contributor

Thanks for reporting!

We greatly appreciate any contributions that help resolve the bug. While we understand that active contributors have their own priorities, we kindly request your assistance if you rely on this bug being fixed. We encourage you to take a look at our contribution guidelines or join our friendly Discord development server, where you can ask any questions you may have. Thank you for your support, and cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🐛 help wanted Issues that are free to take by anyone interested
Projects
None yet
Development

No branches or pull requests

3 participants