-
Notifications
You must be signed in to change notification settings - Fork 7
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
[ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file, data, and node are supported by the default ESM loader. #123
Comments
I think this is related to the bootstrap process that resolves the file paths before invoking the local-action logic. Let me break out my Windows box and test this out a bit further... |
Can you try with version 2.2.1 of |
Hello, |
Looks like it is because the action repo you linked is ESM. There's some additional steps involved to get ESM to work with In the immediate term, I was able to get past the error by removing Longer term, I've submitted a PR to convert the TypeScript template to ESM. I also have an example of a working TypeScript action here you can reference here: https://github.com/issue-ops/parser Let me know if that helps! |
The TypeScript action template has been converted to ESM :) Can you try out the changes and let me know if this error is resolved for you? |
Hello,
I have been facing this issue for a few days and I have no way of resolving it...
My current setup is Windows (the following command works fine on Linux)
When running my action with
npx local-action . src/main.ts .env
, it ends up with the following error:I created the action from the official typescript-action repository and only added a few lines of code in order to perform some tests for creating a new action.
The error is reproductible from this repository.
Simply clone it, run npm install and then run the local action with:
npx local-action . src/main.ts .env.local
Thanks a lot in advance.
The text was updated successfully, but these errors were encountered: