#Alias Breaking after Update to v10

4 messages · Page 1 of 1 (latest)

minor shard
#

Hey, so I have recently updated all my nestjs packages to ^10.3.0, the latest version. After doing that I had some quite interesting issues regarding aliases not working.

Here's a simple example:

import { Module } from '@nestjs/common';

import { AuthService } from '~/auth/auth.service';
import { Websocket } from './websocket.gateway';

@Module({
    providers: [Websocket, AuthService],
    exports: [Websocket, AuthService],
})
export class SharedModule {}

This used to work before updating, but now just says that AuthService can't be resolved. The alias is setup correctly as it worked before the update, and the IDE is able to resolve this path.

broken abyss
#

have you tried setting the path in tsconfig.json ?

minor shard
#

But I was quite confused as it wasn't listed in the article or as a breaking change.