question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

npx nestjs-admin createAdminUser throwing an error

See original GitHub issue

running the command throws exception:

Nest cannot export a provider/module that is not a part of the currently processed module (AdminUserModule). Please verify whether the exported AdminAuthModuleFactory is available in this particular context.

Possible Solutions:
- Is AdminAuthModuleFactory part of the relevant providers/imports within AdminUserModule?
 +21ms
Error: Nest cannot export a provider/module that is not a part of the currently processed module (AdminUserModule). Please verify whether the exported AdminAuthModuleFactory is available in this particular context.

Possible Solutions:
- Is AdminAuthModuleFactory part of the relevant providers/imports within AdminUserModule?

    at Module.validateExportedProvider (C:\Users\boris\Documents\development\nest\omer-project\node_modules\@nestjs\core\injector\module.js:275:19)      
    at addExportedUnit (C:\Users\boris\Documents\development\nest\omer-project\node_modules\@nestjs\core\injector\module.js:242:67)
    at Module.addExportedProvider (C:\Users\boris\Documents\development\nest\omer-project\node_modules\@nestjs\core\injector\module.js:253:9)
    at NestContainer.addExportedProvider (C:\Users\boris\Documents\development\nest\omer-project\node_modules\@nestjs\core\injector\container.js:119:19) 
    at DependenciesScanner.insertExportedProvider (C:\Users\boris\Documents\development\nest\omer-project\node_modules\@nestjs\core\scanner.js:199:24)   
    at C:\Users\boris\Documents\development\nest\omer-project\node_modules\@nestjs\core\scanner.js:107:50
    at Array.forEach (<anonymous>)
    at DependenciesScanner.reflectExports (C:\Users\boris\Documents\development\nest\omer-project\node_modules\@nestjs\core\scanner.js:107:17)
    at DependenciesScanner.scanModulesForDependencies (C:\Users\boris\Documents\development\nest\omer-project\node_modules\@nestjs\core\scanner.js:59:18)    at processTicksAndRejections (internal/process/task_queues.js:97:5)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:15
  • Comments:11

github_iconTop GitHub Comments

3reactions
serkyroncommented, Apr 13, 2020

I’m having the same issue.

0reactions
TheBigBadBuncecommented, Nov 6, 2020

Fixed in #188. Updating to version 0.4.1 should fix the problem!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to generate create-admin-user · Issue #167 - GitHub
When I try to do: npx ts-node node_modules/.bin/typeorm migration:generate -n "create-admin-user". It throws:
Read more >
Authorization | NestJS - A progressive Node.js framework
Authorization refers to the process that determines what a user is able to do. For example, an administrative user is allowed to create,...
Read more >
nestjs-admin-app - npm
Ready-to-use user interface for administrative activities. Allows to list, edit, create, delete entities. This is heavily, heavily inspired by ...
Read more >
Npm Please try using this command again as root/administrator
It turns out that you don't have to run the command again as Administrator, and doing so won't fix the problem. Try: npm...
Read more >
Node JS — Authentication and Authorization With Admin Bro
The user model that I have created has email, password, and role fields where the role field can take only two values either...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found