When we import a module starting with . (dot), I am gettubg MODULE_NOT_FOUND error.
.
├── app
│ ├── .generated
│ │ ├── client.ts
│ │ └── index.ts
│ ├── generated
│ │ ├── client.ts
│ │ └── index.ts
│ ├── dotted.ts
│ └── simple.ts
├── scripts
│ ├── test-dotted.ts
│ └── test-simple.ts
├── package.json
├── pnpm-lock.yaml
└── tsconfig.json
We have a tool that generates client code under .generated module. If we remove the . from the module name, it works fine.
swc-node-issue.zip