You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generating a graphql schema on windows with payload-graphql generate:schema fails with: Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: 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 'c:'
Describe the Bug
Generating a graphql schema on windows with
payload-graphql generate:schema
fails with:Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: 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 'c:'
Link to the code that reproduces this issue
https://github.com/6TELOIV/graphql-schema-windows-url-scheme
Reproduction Steps
This error ONLY effects windows, and is due to
c:
being confused for a URL scheme (i.ehttp:
,file:
, ornode:
)pnpm i
(or your favorite pacman)pnpm payload-graphql generate:schema
(or your favorite pacman)Which area(s) are affected? (Select all that apply)
area: core
Environment Info
The text was updated successfully, but these errors were encountered: