Comments (7)
PR welcome but I'd need verification that the fix is effective
from tsx.
Same issue. Really unhelpful error message.
from tsx.
I'm running into the same issue, though pnpm ls esbuild
doesn't show anything so it looks like this issue might occur in situations not involving esbuild, too.
from tsx.
Oh, nvm. After patching tsx it looks like I'm getting the same error as @Joris-van-der-Wel.
Here's the patch file I created using pnpm patch
in case it's useful to anyone:
from tsx.
As per the Contribution Guide, I've hid comments that aren't productive towards landing a fix.
@narthur Would you be open to contributing a PR?
from tsx.
@privatenumber Sure, I can take a whack at it.
from tsx.
Same issue
package.json
{
"type": "module"
}
tsx --env-file=.env src/index.ts
node:internal/process/esm_loader:34
internalBinding('errors').triggerUncaughtException(
^
TypeError [Error]: undefined is not iterable (cannot read property Symbol(Symbol.iterator))
at bt (file:///Users/user/node_modules/tsx/dist/index-29948669.mjs:16:1598)
at file:///Users/user/node_modules/tsx/dist/index-29948669.mjs:17:632
at hr (file:///Users/user/node_modules/tsx/dist/index-29948669.mjs:16:1071)
at Cr (file:///Users/user/node_modules/tsx/dist/index-29948669.mjs:17:560)
at Z (file:///Users/user/node_modules/tsx/dist/esm/index.mjs:5:1755)
at async nextLoad (node:internal/modules/esm/hooks:749:22)
at async Hooks.load (node:internal/modules/esm/hooks:382:20)
at async handleMessage (node:internal/modules/esm/worker:199:18)
Version 4.7.1
macOS Sonoma 14.1
Node.js v21.3.0
Version 4.6.2 works fine
from tsx.
Related Issues (20)
- Environment variables support HOT 5
- Typescript REPL HOT 1
- Multiline input in Typescript REPL
- Feature request: Extend 'tsx watch' for run command on detects file changes HOT 2
- Parse error when using classes and complicated hashbangs
- Script not running when node=21, type="module", watchmode is enabled, is importing from "node:process" and using turborepo HOT 1
- Support `--input-type=ts` HOT 2
- tsx can't run code with endent HOT 3
- Is Bundle / Compile command planned? HOT 1
- Regression with MikroORM introduced with tsx v4.9.1 HOT 2
- Regression in 4.9.1 βΒ Cannot find module (β¦) Did you mean to import "β¦.js"? HOT 2
- Modules imported dynamically from an absolute path are not loaded/handled by tsx v4.9.1 HOT 3
- π Logo early preview and feedback
- `node:assert`'s `assert.ok(false)` is really slow when using tsx HOT 5
- Unexpected `top-level await error` for `type: module` + top level await in `node_modules` HOT 1
- [ESM / Node v22] Broken import of a correctly bundled library HOT 3
- Incompatible with `import-in-the-middle` loader HOT 4
- Parsing error when using variable `of` HOT 7
- Cannot be used with Nuxt HOT 5
- c8 incorrectly reports 100% coverage when using tsx HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tsx.