npx nestjs-admin createAdminUser throwing an error
See original GitHub issuerunning 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:
- Created 3 years ago
- Reactions:15
- Comments:11
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m having the same issue.
Fixed in #188. Updating to version 0.4.1 should fix the problem!