Replies: 1 comment
-
你这个描述太模糊了 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
`
👽 Taro v3.6.24
Error [ERR_REQUIRE_ESM]: require() of ES Module F:\taro\zhongsheng\node_modules\string-width\index.js from F:\taro\zhongsheng\node_modules\wrap-ansi\index.js not supported.
Instead change the require of F:\taro\zhongsheng\node_modules\string-width\index.js in F:\taro\zhongsheng\node_modules\wrap-ansi\index.js to a dynamic import() which is available in all CommonJS modules.
at Object.newLoader [as .js] (F:\taro\zhongsheng\node_modules\pirates\lib\index.js:121:7)
at Object. (F:\taro\zhongsheng\node_modules\wrap-ansi\index.js:2:21)
at Object.newLoader [as .js] (F:\taro\zhongsheng\node_modules\pirates\lib\index.js:121:7)
at Object. (F:\taro\zhongsheng\node_modules\inquirer\lib\utils\screen-manager.js:4:18)
at Object.newLoader [as .js] (F:\taro\zhongsheng\node_modules\pirates\lib\index.js:121:7)
at Object. (F:\taro\zhongsheng\node_modules\inquirer\lib\prompts\base.js:14:23)
at Object.newLoader [as .js] (F:\taro\zhongsheng\node_modules\pirates\lib\index.js:121:7)
at Object. (F:\taro\zhongsheng\node_modules\inquirer\lib\prompts\list.js:11:14)
at Object.newLoader [as .js] (F:\taro\zhongsheng\node_modules\pirates\lib\index.js:121:7)
at promptModule.restoreDefaultPrompts (F:\taro\zhongsheng\node_modules\inquirer\lib\inquirer.js:61:33)
at inquirer.createPromptModule (F:\taro\zhongsheng\node_modules\inquirer\lib\inquirer.js:72:16)
at Object. (F:\taro\zhongsheng\node_modules\inquirer\lib\inquirer.js:84:28)
at Object.newLoader [as .js] (F:\taro\zhongsheng\node_modules\pirates\lib\index.js:121:7)
at Object. (F:\taro\zhongsheng\node_modules@tarojs\cli\dist\create\project.js:15:18)
at Object.newLoader [as .js] (F:\taro\zhongsheng\node_modules\pirates\lib\index.js:121:7)
at Object. (F:\taro\zhongsheng\node_modules@tarojs\cli\dist\index.js:6:19)
at Object.newLoader [as .js] (F:\taro\zhongsheng\node_modules\pirates\lib\index.js:121:7)
at Object. (F:\taro\zhongsheng\node_modules@tarojs\cli\index.js:1:18)
at Object.newLoader [as .js] (F:\taro\zhongsheng\node_modules\pirates\lib\index.js:121:7)
at Object. (F:\taro\zhongsheng\config\index.ts:12:12)
at Module._compile (F:\taro\zhongsheng\node_modules\pirates\lib\index.js:117:24)
at Object.newLoader [as .ts] (F:\taro\zhongsheng\node_modules\pirates\lib\index.js:121:7)
at Config. (F:\taro\zhongsheng\node_modules@tarojs\service\dist\Config.js:40:77)
at Generator.next ()
at F:\taro\zhongsheng\node_modules@tarojs\service\dist\Config.js:8:71
at new Promise ()
at __awaiter (F:\taro\zhongsheng\node_modules@tarojs\service\dist\Config.js:4:12)
at Config.init (F:\taro\zhongsheng\node_modules@tarojs\service\dist\Config.js:23:16)
at CLI. (F:\taro\zhongsheng\node_modules@tarojs\cli\dist\cli.js:82:30)
at Generator.next ()
at F:\taro\zhongsheng\node_modules@tarojs\cli\dist\cli.js:8:71
at new Promise ()
at __awaiter (F:\taro\zhongsheng\node_modules@tarojs\cli\dist\cli.js:4:12)
at CLI.parseArgs (F:\taro\zhongsheng\node_modules@tarojs\cli\dist\cli.js:29:16)
at CLI.run (F:\taro\zhongsheng\node_modules@tarojs\cli\dist\cli.js:24:21)
at Object. (F:\taro\zhongsheng\node_modules@tarojs\cli\bin\taro:6:11) {
code: 'ERR_REQUIRE_ESM'
}
找不到项目配置文件config/index,请确定当前目录是 Taro 项目根目录!
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
`
Beta Was this translation helpful? Give feedback.
All reactions