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

Linked ESM plugins do not work when using bin/run.js #755

Closed
mdonnalley opened this issue Aug 3, 2023 · 2 comments · Fixed by #759
Closed

Linked ESM plugins do not work when using bin/run.js #755

mdonnalley opened this issue Aug 3, 2023 · 2 comments · Fixed by #759
Labels
bug Something isn't working ESM Related to ESM support

Comments

@mdonnalley
Copy link
Contributor

You cannot run a command from a linked ESM plugin when using the root ESM plugin's bin/run.js

(node:48118) [ERR_UNKNOWN_FILE_EXTENSION] TypeError Plugin: @oclif/plugin-test-esm-2 [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /Users/mdonnalley/repos/oclif/plugin-test-esm-2/src/commands/esm2.ts
module: @oclif/[email protected]
task: toCached
plugin: @oclif/plugin-test-esm-2
root: /Users/mdonnalley/repos/oclif/plugin-test-esm-2
See more details with DEBUG=*
(Use `node --trace-warnings ...` to show where the warning was created)

The bin/dev.js script works as expected, presumably because it uses the ts-node executable instead of node

@mdonnalley mdonnalley added the bug Something isn't working label Aug 3, 2023
@github-project-automation github-project-automation bot moved this to Backlog in ESM Support Aug 3, 2023
@mdonnalley mdonnalley added the ESM Related to ESM support label Aug 3, 2023
@git2gus
Copy link

git2gus bot commented Aug 3, 2023

This issue has been linked to a new work item: W-13883004

@mdonnalley mdonnalley moved this from Backlog to In Progress in ESM Support Aug 3, 2023
@mdonnalley mdonnalley moved this from In Progress to Waiting in ESM Support Aug 9, 2023
@mdonnalley mdonnalley mentioned this issue Aug 9, 2023
24 tasks
@mdonnalley
Copy link
Contributor Author

Fixed by #759 (currently available in @ocilf/[email protected])

@github-project-automation github-project-automation bot moved this from Waiting to Closed in ESM Support Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ESM Related to ESM support
Projects
No open projects
Status: Closed
Development

Successfully merging a pull request may close this issue.

1 participant