Open tigawanna opened 6 months ago
I didn't manage to reproduce your issue on my Ubuntu. Try it out:
git clone git@github.com:tigawanna/nestjs_typeorm.git -b minimal-reproduction
cd nestjs_typeorm/
npm install
npm run start:swc
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 Windows 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("/?/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
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