Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

WARNING: import.meta is not available after updating to 6.20.0 #1185

Copy link
Copy link
@velin-deity

Description

@velin-deity
Issue body actions

What are the steps to reproduce this issue?

  1. Define a mutator that uses import.meta environment variables in the browser
  2. Run orval to generate the client

What happens?

Since orval is packaged in CJS, the CLI throws a warning that import.meta will be empty even though the function using import.meta is never executed during generation.

What were you expecting to happen?

The mutator should be executed without any warnings. Why does orval bother with linting client code?

Any logs, error output, etc?

Any other comments?

Somewhere between versions 6.19 and 6.23 the build-tooling for orval seems to have changed. I can't find this being mentioned in any of the release notes.

What versions are you using?

Package Version: 6.24.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingSomething isn't workingworkaroundA workaround has been providedA workaround has been provided

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.