Skip to content

bug: The 'import.meta' meta-property is only allowed when the... #1015

Open
@gajus

Description

@gajus

Node.js version

22

NPM version

10

@checkly/cli version

0.4.14

Steps to reproduce

  1. Use import.meta.dirname
  2. Run pnpx checkly test

What is expected?

For tests to run.

What is actually happening?

The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'.
entrypoint: path.join(import.meta.dirname, 'homepage.spec.ts')

Our tsconfig.json already uses nodenext, so it is not clear where it is picking up the other value.

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions