Skip to content

Error al lanzar dev:mooc:backend #5

@xavikortes

Description

@xavikortes

En mi caso estoy utilizando Bun, pero es igual con node. Al intentar levantar el servidor salta este error:

➤  bun dev:mooc:backend    
$ NODE_ENV=dev bun run ts-node-dev --ignore-watch node_modules ./src/apps/mooc/backend/start.ts
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (=)
[INFO] 15:32:44 ts-node-dev ver. 1.1.8 (using ts-node ver. 9.1.1, typescript ver. 4.8.4)
Compilation error in /path/to/typescript-ddd-skeleton/src/apps/mooc/backend/start.ts
Error: Debug Failure. False expression: Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.
    at Object.<anonymous> (/path/to/typescript-ddd-skeleton/src/apps/mooc/backend/start.ts:1:7)
    at Module._compile (node:internal/modules/cjs/loader:1103:14)
    at Module._compile (/path/to/typescript-ddd-skeleton/node_modules/source-map-support/source-map-support.js:568:25)
    at Module.m._compile (/tmp/ts-node-dev-hook-22129939898005357.js:69:33)
    at Module._extensions..js (node:internal/modules/cjs/loader:1155:10)
    at require.extensions.<computed> (/tmp/ts-node-dev-hook-22129939898005357.js:71:20)
    at Object.nodeDevHook [as .ts] (/path/to/typescript-ddd-skeleton/node_modules/ts-node-dev/lib/hook.js:63:13)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
[ERROR] 15:32:44 Error: Debug Failure. False expression: Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.

Por lo visto es un problema de ts-node.

Se puede solucionar aumentando las siguientes versiones:

{
    "ts-node": "^10.9.1",
    "ts-node-dev": "^2.0.0",
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions