privatenumber / tsx

⚡️ TypeScript Execute | The easiest way to run TypeScript in Node.js
https://tsx.is
MIT License
9.77k stars 154 forks source link

Error loading JSON modules when required by dependencies #645

Closed gcoonrod closed 2 weeks ago

gcoonrod commented 2 months ago

Acknowledgements

Minimal reproduction URL

https://github.com/gcoonrod/tsx-error

Problem & expected behavior (under 200 words)

Skip this section and let your reproduction do the talking...

But if you really need to explain, keep it under 200 words:

Bugs are expected to be fixed by those affected by it

Compensating engineering work will speed up resolution and support the project

privatenumber commented 2 months ago

I think this is a duplicate of https://github.com/privatenumber/tsx/issues/640

9r1nc3w1ll commented 3 weeks ago

set "allowJs": false in your TS config.

privatenumber commented 2 weeks ago

Closing as a duplicate