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

handle ESM lambda path on Windows #234

Merged
merged 2 commits into from
Jul 22, 2023
Merged

Conversation

jimsalyer
Copy link
Contributor

@jimsalyer jimsalyer commented Jul 21, 2023

Discovered that setting the esm option to true on Windows will throw the following error when trying to run execute or the CLI.

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:

This fix shouldn't affect any other platforms and should only take effect when the esm option is true.

fixes #233

@gpotter2
Copy link
Collaborator

Thanks for the report and fix ! This is kinda crazy to me.

src/lambdalocal.ts Outdated Show resolved Hide resolved
@gpotter2 gpotter2 merged commit f68eac1 into ashiina:develop Jul 22, 2023
4 checks passed
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 this pull request may close these issues.

Getting "Unsupported URL Scheme" error when using "esm" option.
2 participants