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

使用报错 #5

Open
zboMa opened this issue May 6, 2024 · 2 comments
Open

使用报错 #5

zboMa opened this issue May 6, 2024 · 2 comments

Comments

@zboMa
Copy link

zboMa commented May 6, 2024

按照示例使用,报错了

ERROR [ExceptionHandler] Nest can't resolve dependencies of the AccountPaymentService (?). Please make sure that the argument "WECHAT_PAY_MANAGER" at index [0] is available in the AccountsModule context.

Potential solutions:
- Is AccountsModule a valid NestJS module?
- If "WECHAT_PAY_MANAGER" is a provider, is it part of the current AccountsModule?
- If "WECHAT_PAY_MANAGER" is exported from a separate @Module, is that module imported within AccountsModule?
  @Module({
    imports: [ /* the Module containing "WECHAT_PAY_MANAGER" */ ]
  })
@zboMa
Copy link
Author

zboMa commented May 6, 2024

nestjs 10.0.0
wechatpay-node-v3 2.2.0

@notbucai
Copy link

WeChatPayModule.registerAsync({
global: true, // 增加这个
useFactory:

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