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

tsx 4.13.1 fails to find exported module in @aws-sdk/client-iot-data-plane with Node.js 20 #577

Closed
5 of 6 tasks
coderbyheart opened this issue Jun 7, 2024 · 6 comments
Closed
5 of 6 tasks
Labels
bug Something isn't working released

Comments

@coderbyheart
Copy link

coderbyheart commented Jun 7, 2024

Acknowledgements

  • I read the documentation and searched existing issues to avoid duplicates
  • I am reporting a confirmed bug (not seek debugging help)
  • I understand this is a collaborative project and relies on my contributions
  • I read and understood the Contribution guide

Minimal reproduction URL

https://github.com/coderbyheart/tsx-import-bug/actions/runs/9414431871/job/25933332684#step:5:6

Problem & expected behavior (under 200 words)

This works with 4.12.1: https://github.com/coderbyheart/tsx-import-bug/actions/runs/9414522107/job/25933611074#step:6:5

package.json

{
  "devDependencies": {
    "@aws-sdk/client-iot-data-plane": "3.592.0",
    "tsx": "4.13.1"
  },
  "engines": { "node": ">=20" }
}

index.ts

import { UpdateThingShadowCommand } from '@aws-sdk/client-iot-data-plane';

new UpdateThingShadowCommand({} as any);

Output

$ npx tsx -v
tsx v4.13.1
node v20.14.0

$ npx tsx index.ts

import { UpdateThingShadowCommand } from "@aws-sdk/client-iot-data-plane";
^

SyntaxError: The requested module '@aws-sdk/client-iot-data-plane' does not provide an export named 'UpdateThingShadowCommand'
at ModuleJob._instantiate (node:internal/modules/esm/module_job:134:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:217:5)
at async ModuleLoader.import (node:internal/modules/esm/loader:316:24)
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:123:5)

Node.js v20.14.0

Bugs are expected to be fixed by those affected by it

  • I'm interested in working on this issue

Compensating engineering work financially will speed up resolution

  • I'm willing to offer financial support
@coderbyheart coderbyheart added bug Something isn't working pending triage labels Jun 7, 2024
@m4rvr

This comment was marked as off-topic.

@AliMirlou

This comment was marked as spam.

@karlhorky

This comment was marked as off-topic.

@privatenumber
Copy link
Owner

I've hidden comments that aren't constructive towards fixing the issue.

If you have a similar bug, consider filing a separate issue with your own minimal reproduction. Often times, we'll address the reported issue and reports in the comments get neglected.

Please read the Contribution Guide for guidelines on commenting on Issues.

Repository owner locked and limited conversation to collaborators Jun 7, 2024
@privatenumber
Copy link
Owner

🎉 This issue has been resolved in v4.13.2

If you appreciate this project, please consider supporting this project by sponsoring ❤️ 🙏

@privatenumber
Copy link
Owner

Thanks for the issue @coderbyheart! Should be fixed now ^

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working released
Projects
None yet
Development

No branches or pull requests

5 participants