Hello everyone, I have some issues with my decorator's import using Typescript path aliases and swc.
This is an example of an import:
import { SkipAuth } from '@api/users/auth';
This is the content of src/api/users/auth/index.ts:
``export * from './decorators/skipAuth.decorator';`
This is the content of src/api/users/auth/decorators/skipAuth.decorator.ts:
export const SkipAuth = () => SetMetadata(SKIP_AUTH_KEY, true);
The IDE's intellisense doesn't give me any error but when I run nest start I get the following error:
@SkipAuth()
^
TypeError: (0 , _auth.SkipAuth) is not a function
SkipAuth seems to be undefined. I think there is something wrong in the build process but I can't figure out what.
Other (maybe) useful informations:
tsconfig path: "@api/users/*": ["src/api/users/*"],
Thanks in advance 🙂