[BUG] SWC preset generates project with TypeScript 7 incompatible with @swc-node/register
@Romakita ya está trabajando en esto.
Desde el 7/10/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Information
- Version:
@tsed/cli 7.8.0 - Node.js:
v24.18.0 - npm: current npm bundled with Node.js 24
- OS: Linux
Packages generated by the Ts.ED CLI include:
typescript@^7.0.2
@swc-node/register@^1.12.1
When creating a new project with the Node.js + SWC preset, the generated dependency set is not installable cleanly because @swc-node/[email protected] declares:
peer typescript >=4.3 <7
Example
After generating a fresh project, running:
npm install
fails with:
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error While resolving: [email protected]
npm error Found: [email protected]
npm error node_modules/typescript
npm error typescript@"^7.0.2" from the root project
npm error Could not resolve dependency:
npm error peer typescript@">= 4.3 < 7" from @swc-node/[email protected]
npm error node_modules/@swc-node/register
npm error @swc-node/register@"^1.12.1" from the root project
If the dependency conflict is bypassed and the application is started anyway, it fails at runtime:
TypeError: Cannot read properties of undefined (reading 'Js')
at Object.<anonymous> (.../node_modules/@swc-node/register/transform-cache.ts:18:53)
This appears to be the same incompatibility already indicated by the peer dependency constraint.
Expected behavior
A freshly generated project using the Node.js + SWC preset should install and start without dependency conflicts.
The generator should either:
- use a TypeScript version supported by
@swc-node/register, or - use an
@swc-node/registerversion that supports TypeScript 7.
Acceptance criteria
- A project generated with the Node.js + SWC preset installs successfully with
npm install. - No peer dependency conflict exists between TypeScript and
@swc-node/register. -
npm startruns successfully with the generated dependency versions.
- Lenguaje dominante
- TypeScript
- Estrellas
- 43
- Forks
- 25
- Merge medio
- 15 min
- PR fusionados (30 d)
- 2
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de tsedio/tsed-cli
-
[FEAT] Add MikroOrm pluginQuizá libre de nuevo @derevnjuk la tomó hace 1607 días y no hay ningún pull request abierto. Abiertoenhancement good first issue pinned
tsedio/tsed-cli#257 · 1 comentario · 2 reacciones · 2 asignados ·
Todos los issues de tsedio/tsed-cli
Issues similares
-
triage
Dificultad 1/5 Menos de una hora Aptitud para principiantes 64/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
ranxianglei/billion-context#7860 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
-
agent-oc-find-bugs api complexity → simple payment-methods recurring contributions reviewed stripe
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
opencollective/opencollective#9177 ·