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

@juzi/wechaty动态加载的module错误 #80

Open
chapterBegin opened this issue Dec 20, 2023 · 0 comments
Open

@juzi/wechaty动态加载的module错误 #80

chapterBegin opened this issue Dec 20, 2023 · 0 comments

Comments

@chapterBegin
Copy link

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

  1. Please run the following command and check whether the problem has been fixed:

    rm -rf package-lock.json
    rm -rf node_modules
    npm install
  2. Please search in FAQ List first, and make sure your problem has not been solved before.

  3. 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:

  1. run '...'
  2. ...
  3. ...

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:

  1. it has been installed correctly. (run npm install wechaty-puppet-service if it doesn't)
  2. "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!

image

image

image

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

1 participant