nestjs / nest

A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript 🚀
https://nestjs.com
MIT License
68.19k stars 7.67k forks source link

i want use worker_threads in my project and ts-node #3226

Closed little-gg-bound closed 5 years ago

little-gg-bound commented 5 years ago

hello,if i create a workspace ,i use ts-node throw error Error: Cannot find module '@app/database/database.module' Require stack:

i use nest start:dev tasker it's ok what should i do anyone help me please wo want use worker_threads in my project, and i create so many libs , but now ,i have to use the rest ci to manage my project ,but in my project, i need to use ts-node to run my project。

em.....like this workspace image

tasker project image

i should use rest ci to manager project deps, now if i use nest-cli run my project it's ok,but if i use ts-node it's not work

> ts-node apps/tasker/src/main.ts
Error: Cannot find module '@app/database/database.module'
Require stack:
- F:\workspace\nike.snkrs\node-nike-snkrs\snkrs-app\apps\tasker\src\app.module.ts
- F:\workspace\nike.snkrs\node-nike-snkrs\snkrs-app\apps\tasker\src\main.ts
>nest start:dev tasker
It can work
little-gg-bound commented 5 years ago

My goal was to use nest my old projects, and Shared library file

little-gg-bound commented 5 years ago

I think, if I can use ts-node to run the project, so I can use worker_threads

little-gg-bound commented 5 years ago

I think the nest DI implementation is very perfect, I now want to use the nest in the part of the module only use di manage my project

little-gg-bound commented 5 years ago

I think may be I don't understand the typescript, but I still want to ask about my train of thought is workable

kamilmysliwiec commented 5 years ago

Please, use our Discord channel (support) for such questions. We are using GitHub to track bugs, feature requests, and potential improvements.

lock[bot] commented 4 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.