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
broken path in build output #2534
Comments
works in wsl , looks like a windows issue Linux output in dtst/posts/post.module,js const _common = require("@nestjs/common");
const _postsservice = require("./posts.service");
const _postscontroller = require("./posts.controller");
const _colorsmodule = require("../colors/colors.module"); vs const _common = require("@nestjs/common");
const _postsservice = require("./posts.service");
const _postscontroller = require("./posts.controller");
const _colorsmodule = require("/?/C:/Users/denni/Desktop/code/node/nestjs/minimal/src/colors/colors.module"); manually correcting the path will fix the issue and it only appears when importing external modules (colors into posts) |
@tigawanna what if you don't use swc? perhaps that's something we cannot fix on our side |
ts-node without swc works fine it's just slow but i get there's not much you can do about an SWC issue |
Is there an existing issue for this?
Current behavior
Hey guys am getting this error when trying to import a module into another
manually changing
fixes ths issue , what am i doing wrong?
Minimum reproduction code
https://github.com/tigawanna/nestjs_typeorm/tree/minimal-reproduction
Steps to reproduce
npm ci
2.npm run start:swc
Expected behavior
start up server with no errors
Package
@nestjs/common
@nestjs/core
@nestjs/microservices
@nestjs/platform-express
@nestjs/platform-fastify
@nestjs/platform-socket.io
@nestjs/platform-ws
@nestjs/testing
@nestjs/websockets
Other package
10
NestJS version
No response
Packages versions
Node.js version
20
In which operating systems have you tested?
Other
with
npm run start:dev
with
npm run start:swc
The text was updated successfully, but these errors were encountered: