Closed dgastudio closed 1 year ago
i can confirm that installing @swc/cli @swc/core breaks the aliases
SWC uses the .swcrc
for path aliases. You need to define them in both the swcrc
file for swc and the tsconfig.json
for your IDE. Ideally, there would be some kind of script that merges these, but for now you can at least know that fact
thank you @jmcdo29 seems no issues with missing modules now, but there are a lot of other errors Cannot access '*' before initialization
i think i'll wait a little bit, before this new feature becomes more estable
This feature is already stable.
Please, use our Discord channel (support) for such questions. We are using GitHub to track bugs, feature requests, and potential improvements.
Is there an existing issue for this?
Current behavior
Minimum reproduction code
it can't be reproduces as it's related to builder
Steps to reproduce
nestjs-cli.json
{ "$schema": "https://json.schemastore.org/nest-cli", "collection": "@nestjs/schematics", "sourceRoot": "src", "compilerOptions": { "builder": "swc", "assets": [ { "include": "i18n/*/", "watchAssets": true } ] } }
tsconfig.ts { "compilerOptions": { "module": "commonjs", "declaration": true, "removeComments": true, "emitDecoratorMetadata": true, "experimentalDecorators": true, "allowSyntheticDefaultImports": true, "target": "es2017", "sourceMap": true, "outDir": "./dist", "baseUrl": "./", "incremental": true, "skipLibCheck": true, "strictNullChecks": false, "noImplicitAny": false, "strictBindCallApply": false, "forceConsistentCasingInFileNames": false, "noFallthroughCasesInSwitch": false, "paths": { "@modules/": [ "src/modules/" ], "@system/": [ "src/system/" ] }, "watchFile": "dynamicPriorityPolling", "watchDirectory": "dynamicPriorityPolling", "excludeDirectories": [ "**/node_modules", "dist" ] } }
Expected behavior
it should be compiled
Package
Other package
No response
NestJS version
10
Packages versions
Node.js version
20+
In which operating systems have you tested?
Other
No response