Skip to content

stubOptions.absoluteJitiPath result in URL scheme error on windows #545

@huang-julien

Description

@huang-julien

Environment

Windows :(

Reproduction

see the description

Describe the bug

when stubbing Nuxt locally on a windows platform, this result in:

Only URLs with a scheme in: file, data, and node are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'd:'

--> const _module = await jiti.import("D:/repo/nuxt/packages/kit/src/index.ts")

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions