Skip to content

Reading configuration file in Windows #67

@kaleabmelkie

Description

@kaleabmelkie

Following the basic steps from the Getting Started section of the docs errors with the following message on Windows when trying to run generate:

> npx @magidoc/cli@latest generate
Only URLs with a scheme in: file, data are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:'

My "magidoc.mjs" file:

export default {
  introspection: {
    type: "url",
    url: "https://graphiql-test.netlify.app/.netlify/functions/schema-demo",
  },
  website: {
    template: "carbon-multi-page",
  },
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions