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]: <@wdio/config:ConfigParser: Failed loading configuration file in CircleCi> #13009

Closed
3 tasks done
nghhung opened this issue Jun 11, 2024 · 1 comment
Closed
3 tasks done
Labels
Bug 🐛 Needs Triaging ⏳ No one has looked into the issue yet

Comments

@nghhung
Copy link

nghhung commented Jun 11, 2024

Have you read the Contributing Guidelines on issues?

WebdriverIO Version

latest

Node.js Version

20.10.0

Mode

WDIO Testrunner

Which capabilities are you using?

capabilities: [
    {
      browserName: 'chrome',
      'goog:chromeOptions': {
        // to run chrome headless the following flags are required
        // (see https://developers.google.com/web/updates/2017/04/headless-chrome)
        args: [
          '--headless',
          '--disable-gpu',
          '--no-sandbox',
          '--window-size=1920,1080',
          '--disable-dev-shm-usage',
          '--incognito'
        ]
      }
    }
  ],

What happened?

Hi, I got this error when running test in CircleCi. It works well in local.

2024-06-11T10:00:50.349Z ERROR @wdio/config:ConfigParser: Failed loading configuration file: file:///home/circleci/project/wdio.conf.ts: Unknown file extension ".ts" for /home/circleci/project/wdio.conf.ts
TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /home/circleci/project/wdio.conf.ts

I use the WebdriverIO Starter Toolkit to init project WebdriverIO + mocha + typescript.

Do you have any suggestion?

What is your expected behavior?

It works well in local and CircleCi

How to reproduce the bug.

Init project by: WebdriverIO Starter Toolkit
npm init wdio@latest .

It works well local but failed in CircleCi

Relevant log output

2024-06-11T10:00:50.349Z ERROR @wdio/config:ConfigParser: Failed loading configuration file: file:///home/circleci/project/wdio.conf.ts: Unknown file extension ".ts" for /home/circleci/project/wdio.conf.ts
TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /home/circleci/project/wdio.conf.ts

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

Hey @nghhung , thanks for raising the issue. Unfortunately I don't see how anyone could investigate this issue as there is no information about your Circle CI environment. There are many resources as to why [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" appears and I would recommend to start with that. In WebdriverIO v9 we are moving to tsx which should eliminate this problem.

At this point I can only close this issue as it is impossible for us to assist you here. Let me know if you have any specific questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🐛 Needs Triaging ⏳ No one has looked into the issue yet
Projects
None yet
Development

No branches or pull requests

2 participants