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

Error al lanzar dev:mooc:backend #5

Open
xavikortes opened this issue Oct 19, 2022 · 0 comments
Open

Error al lanzar dev:mooc:backend #5

xavikortes opened this issue Oct 19, 2022 · 0 comments

Comments

@xavikortes
Copy link

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",
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant