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

Getting "Unsupported URL Scheme" error when using "esm" option. #233

Closed
jimsalyer opened this issue Jul 21, 2023 · 0 comments · Fixed by #234
Closed

Getting "Unsupported URL Scheme" error when using "esm" option. #233

jimsalyer opened this issue Jul 21, 2023 · 0 comments · Fixed by #234

Comments

@jimsalyer
Copy link
Contributor

When I run lambdaLocal.execute with the "esm" option set to true, I get the following error.

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:'

Has anybody encountered this and knows a workaround? The only way I could get around it was to actually go into the source (libs/utils.js) and add support for the file protocol, but I think that will only work in Windows.

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

Successfully merging a pull request may close this issue.

1 participant