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

fix: issue#44 more Nest like error #46

Merged
merged 2 commits into from
Oct 14, 2023
Merged

fix: issue#44 more Nest like error #46

merged 2 commits into from
Oct 14, 2023

Conversation

Nhahan
Copy link
Member

@Nhahan Nhahan commented Sep 6, 2023

Description

Define classMap to handle classes and paths that are scanned by the Importer class.
Then, check for any overlapping classes in the classMap and display them to the users.

Please check the image below.

image

References

Checklist

  • Add labels and reviewers ?
  • Are you fully explaining what you changed ?
  • Did you check that there is no conflict with the base branch ?

@Nhahan Nhahan added the enhancement New feature or request label Sep 6, 2023
@Nhahan Nhahan requested a review from player31-kks September 6, 2023 14:05
@Nhahan Nhahan self-assigned this Sep 6, 2023
@Nhahan Nhahan linked an issue Sep 6, 2023 that may be closed by this pull request
2 tasks
`ComponentScan() module scope cannot be overlapped.\n\nPotential causes:\n- An overlapped dependency between modules.\n- Please check the module in '${this.rootPath}' and '${path}'\n\nScope [${value.name}]`,
`ComponentScan() module scope cannot be overlapped.\n\nPotential causes:\n- An overlapped dependency between modules.\n- Please check the module in '${
this.rootPath
}' and '${path}'\n\nScope [${value.name} -> ${this.classMap.get(this.rootPath)!.name}]`,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know some people may dislike ! syntax. But in this case, this.rootPath key is definetely defined, so I used it to make the code short and clear.
Looks fine to me, but if you have a different opinion please let me know. 😄

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Nhahan Nhahan merged commit 7df281e into dev Oct 14, 2023
@Nhahan Nhahan deleted the fix/more-nest-like-error branch October 16, 2023 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

even more Nest like error
2 participants