-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Important:Please file the issue follow the template, or we won't be able to help you to solve the problem.
0. Report Issue Guide
-
Please run the following command and check whether the problem has been fixed:
rm -rf package-lock.json rm -rf node_modules npm install
-
Please search in FAQ List first, and make sure your problem has not been solved before.
-
Please search in the issue first, and make sure your problem had not been reported before
1. Versions
What is your wechaty version?
Answer: @juzi/wechaty 1.0.84
Which puppet are you using for wechaty? (puppeteer/padlocal/service...)
Answer: workpro
What is your wechaty-puppet-XXX(padchat/puppeteer/) version?
Answer:
What is your node version? (run
node --version)
Answer: latest
What os are you using
Answer: linux
2. Describe the bug
@juzi/wechaty动态加载的module错误
3. To Reproduce
This part is very important: if you can not provide any reproduce steps, then the problem will be very hard to be recognized.
How to create a Minimal, Reproducible Example
Steps to reproduce the behavior:
- run '...'
- ...
- ...
4. Expected behavior
@juzi/wechaty 动态加载的是 @juzi/wechaty-puppet-service
5. Actual behavior
@juzi/wechaty 动态加载的是wechaty-puppet-service
6. Full Output Logs
17:55:22 ERR Puppet resolvePuppetName
Failed to import Wechaty Puppet Provider (WPP) NPM module: "wechaty-puppet-service"
Please make sure:
- it has been installed correctly. (run
npm install wechaty-puppet-serviceif it doesn't) - "wechaty-puppet-service" is a valid Wechaty Puppet Provider (WPP).
learn more about Wechaty Puppet Providers (WPP) from the official website:
https://wechaty.js.org/docs/puppet-providers
node:internal/modules/esm/resolve:844
throw new ERR_MODULE_NOT_FOUND(packageName, fileURLToPath(base), null);
^
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'wechaty-puppet-service' imported from /home/chapterless/WebstormProjects/wechaty-proxy/node_modules/@juzi/wechaty-puppet/dist/esm/src/puppet/puppet-resolver.js
at packageResolve (node:internal/modules/esm/resolve:844:9)
at moduleResolve (node:internal/modules/esm/resolve:901:20)
at defaultResolve (node:internal/modules/esm/resolve:1121:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:396:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:365:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:240:38)
at ModuleLoader.import (node:internal/modules/esm/loader:328:34)
at importModuleDynamically (node:internal/modules/esm/translators:146:35)
at importModuleDynamicallyCallback (node:internal/modules/esm/utils:176:14)
at resolvePuppetName (file:///home/chapterless/WebstormProjects/wechaty-proxy/node_modules/@juzi/wechaty-puppet/dist/esm/src/puppet/puppet-resolver.js:62:9) {
code: 'ERR_MODULE_NOT_FOUND'
}
We need full log instead of log screenshot or log fragments!


