Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't Resolve classes in a different .ts file #94

Closed
sarathfrancis90 opened this issue Sep 17, 2020 · 4 comments
Closed

Can't Resolve classes in a different .ts file #94

sarathfrancis90 opened this issue Sep 17, 2020 · 4 comments
Assignees

Comments

@sarathfrancis90
Copy link

sarathfrancis90 commented Sep 17, 2020

I am facing an issue when using the automapper transformer plugin with nestjsx-automapper.
I have added the plugin info in nest-cli.json file.

Transformer Plugin unable to resolve class defined in a separate .ts file.

Details

Versions:
NestJs: 7.4.2
nestjsx-automapper: 3.1.2
@nartc/automapper-transformer-plugin: 1.0.21
typescript: 3.7.4

Example.
There is profile.ts file with following.

export class Profile {
  bio: string;
  age: number;
}

and there is user.ts file with

import { Profile } from './profile'
export class User {
  firstName: string;
  lastName: string;
  profile: Profile;
}

when building the project, error is thrown stating, Can't Resolve Profile from the User Class.

Please advise.

Thanks,

@nartc nartc self-assigned this Sep 17, 2020
@nartc
Copy link
Owner

nartc commented Sep 17, 2020

Thanks for reporting. I'll take a look as soon as possible.

@sarathfrancis90
Copy link
Author

@nartc :Any update on this?

@nartc
Copy link
Owner

nartc commented Sep 23, 2020

@sarathfrancis90 Hi, I'm in a middle of transitioning to a new job so kind of busy at the moment. I'll get to the issue as soon as I can. Thank you for your patience.

@nartc
Copy link
Owner

nartc commented Sep 27, 2020

@sarathfrancis90 I can't seem to reproduce this issue. Can you please provide a sample repository?

@nartc nartc closed this as completed Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants