Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update-bcd file path issues on Windows #328

Closed
hamishwillee opened this issue Apr 25, 2023 · 5 comments
Closed

update-bcd file path issues on Windows #328

hamishwillee opened this issue Apr 25, 2023 · 5 comments

Comments

@hamishwillee
Copy link
Contributor

This is not a blocker - just letting you know.

Got the following errors to do with absolute file paths on windows. Works on linux.

D:\github\mozilla\mdn-bcd-collector>npm run update-bcd -- -p api.RTCStatsReport*

> mdn-bcd-collector@9.0.2 update-bcd
> ts-node scripts/update-bcd.ts -p api.RTCStatsReport*

Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file and data are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'd:'
    at new NodeError (node:internal/errors:399:5)
    at throwIfUnsupportedURLScheme (node:internal/modules/esm/resolve:1059:11)
    at defaultResolve (node:internal/modules/esm/resolve:1135:3)
    at nextResolve (node:internal/modules/esm/loader:163:28)
    at defer (D:\github\mozilla\mdn-bcd-collector\node_modules\ts-node\src\esm.ts:159:23)
    at entrypointFallback (D:\github\mozilla\mdn-bcd-collector\node_modules\ts-node\src\esm.ts:168:34)
    at D:\github\mozilla\mdn-bcd-collector\node_modules\ts-node\src\esm.ts:202:16
    at addShortCircuitFlag (D:\github\mozilla\mdn-bcd-collector\node_modules\ts-node\src\esm.ts:409:21)
    at resolve (D:\github\mozilla\mdn-bcd-collector\node_modules\ts-node\src\esm.ts:197:12)
    at resolve (D:\github\mozilla\mdn-bcd-collector\node_modules\ts-node\src\child\child-loader.ts:15:39) {
  code: 'ERR_UNSUPPORTED_ESM_URL_SCHEME'
}
@queengooborg
Copy link
Member

Windows is so wonderful, isn't it? 🙃

Would you be down to submit a pull request to fix this? I don't use Windows so I can't test any patches!

@foolip

This comment was marked as outdated.

@hamishwillee

This comment was marked as outdated.

@queengooborg
Copy link
Member

@hamishwillee Is this still an issue?

@hamishwillee
Copy link
Contributor Author

I'm going to close this because I haven't run into issues for ages!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants