Skip to content

Commit 323f289

Browse files
Update messages.ts
1 parent 09057ac commit 323f289

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

packages/core/errors/messages.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,7 @@ export const INVALID_MODULE_MESSAGE = (
8383
text: TemplateStringsArray,
8484
scope: string,
8585
) =>
86-
`
87-
Nest cannot create the module instance.
88-
Often, this is because of a circular dependency between modules.
89-
Use forwardRef() to avoid it.
86+
`Nest cannot create the module instance. Often, this is because of a circular dependency between modules. Use forwardRef() to avoid it.
9087
9188
(Read more: https://docs.nestjs.com/fundamentals/circular-dependency.)
9289
Scope [${scope}]
@@ -96,9 +93,7 @@ export const UNKNOWN_EXPORT_MESSAGE = (
9693
token: string = 'item',
9794
module: string,
9895
) => {
99-
return `
100-
Nest cannot export a provider/module that is not a part of the currently processed module (${module}).
101-
Please verify whether the exported ${token} is available in this particular context.
96+
return `Nest cannot export a provider/module that is not a part of the currently processed module (${module}). Please verify whether the exported ${token} is available in this particular context.
10297
10398
Possible Solutions:
10499
- Is ${token} part of the relevant providers/imports within ${module}?

0 commit comments

Comments
 (0)