Closed tmdos closed 1 month ago
at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
at Object.<anonymous> (C:\Users\Administrator\AppData\Roaming\picgo\node_modules\strtok3\lib\AbstractTokenizer.js:4:25)
at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
at Object.<anonymous> (C:\Users\Administrator\AppData\Roaming\picgo\node_modules\strtok3\lib\ReadStreamTokenizer.js:4:29)
at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
at Object.<anonymous> (C:\Users\Administrator\AppData\Roaming\picgo\node_modules\strtok3\lib\core.js:4:31)
at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
at Object.<anonymous> (C:\Users\Administrator\AppData\Roaming\picgo\node_modules\strtok3\lib\index.js:5:14)
at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
at Object.<anonymous> (C:\Users\Administrator\AppData\Roaming\picgo\node_modules\file-type\index.js:2:17)
at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
at Object.<anonymous> (C:\Users\Administrator\AppData\Roaming\picgo\node_modules\picgo-plugin-s3\dist\utils.js:10:21)
at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
at Object.<anonymous> (C:\Users\Administrator\AppData\Roaming\picgo\node_modules\picgo-plugin-s3\dist\uploader.js:10:17)
at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
at Object.<anonymous> (C:\Users\Administrator\AppData\Roaming\picgo\node_modules\picgo-plugin-s3\dist\index.js:5:36)
at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
at Nt.getPlugin (D:\Program Files\PicGo\resources\app.asar\node_modules\picgo\dist\index.cjs.js:1:43919)
at Nt.registerPlugin (D:\Program Files\PicGo\resources\app.asar\node_modules\picgo\dist\index.cjs.js:1:43042)
at Nt.load (D:\Program Files\PicGo\resources\app.asar\node_modules\picgo\dist\index.cjs.js:1:42716)
at $t.init (D:\Program Files\PicGo\resources\app.asar\node_modules\picgo\dist\index.cjs.js:1:73680)
at new $t (D:\Program Files\PicGo\resources\app.asar\node_modules\picgo\dist\index.cjs.js:1:72925)
at D:\Program Files\PicGo\resources\app.asar\index.js:2:683957
at D:\Program Files\PicGo\resources\app.asar\index.js:2:734774
at Object.<anonymous> (D:\Program Files\PicGo\resources\app.asar\index.js:2:734778)
at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
at Object.<anonymous> (node:electron/js2c/browser_init:193:3197)
at Object../lib/browser/init.ts (node:electron/js2c/browser_init:193:3401)
at __webpack_require__ (node:electron/js2c/browser_init:1:128)
at node:electron/js2c/browser_init:1:1200
at node:electron/js2c/browser_init:1:1267
at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
-------Error Stack End-------
2024-10-23 01:34:17 [PicGo INFO] register builtin shortKey command: [picgo:upload] - [CommandOrControl+Shift+P]
2024-10-23 01:34:17 [PicGo INFO] register builtin shortKey command: [picgo:upload] - [CommandOrControl+Shift+P] successfully
2024-10-23 01:36:02 [PicGo ERROR]
------Error Stack Begin------
Error [ERR_REQUIRE_ESM]: require() of ES Module C:\Users\Administrator\node_modules\peek-readable\lib\index.js from C:\Users\Administrator\AppData\Roaming\picgo\node_modules\strtok3\lib\AbstractTokenizer.js not supported.
Instead change the require of index.js in C:\Users\Administrator\AppData\Roaming\picgo\node_modules\strtok3\lib\AbstractTokenizer.js to a dynamic import() which is available in all CommonJS modules.
at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
at Object.
报错很明显了 这个模块不存在。所以picgo无法把这个插件运行起来。请去插件仓库反馈
我也遇到这个问题了
Piclist可正常使用
前置阅读 | Pre-reading
PicGo的版本 | PicGo Version
v24.0-beta
系统信息 | System Information
Windows
问题重现 | Bug reproduce
picgo amazon s3 uploader 插件安装成功,图床列表里没有,刷新后又显示未安装状态!
相关日志 | Logs
-------Error Stack End------- 2024-10-23 01:06:10 [PicGo INFO] [PicGo Server] shutdown 2024-10-23 01:12:33 [PicGo ERROR] ------Error Stack Begin------ Error: Cannot find module 'peek-readable' Require stack:
at Module._resolveFilename (node:internal/modules/cjs/loader:940:15) at Function.n._resolveFilename (node:electron/js2c/browser_init:249:1128) at Module._load (node:internal/modules/cjs/loader:785:27) at Function.c._load (node:electron/js2c/asar_bundle:5:13331) at Module.require (node:internal/modules/cjs/loader:1012:19) at require (node:internal/modules/cjs/helpers:94:18) at Object. (C:\Users\Administrator\AppData\Roaming\picgo\node_modules\strtok3\lib\AbstractTokenizer.js:4:25)
at Module._compile (node:internal/modules/cjs/loader:1116:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1169:10)
at Module.load (node:internal/modules/cjs/loader:988:32)
-------Error Stack End-------
2024-10-23 01:12:33 [PicGo INFO] register builtin shortKey command: [picgo:upload] - [CommandOrControl+Shift+P]
2024-10-23 01:12:33 [PicGo INFO] register builtin shortKey command: [picgo:upload] - [CommandOrControl+Shift+P] successfully
2024-10-23 01:17:20 [PicGo ERROR]
------Error Stack Begin------
Error: Cannot find module 'peek-readable'
Require stack:
at Module._resolveFilename (node:internal/modules/cjs/loader:940:15) at Function.n._resolveFilename (node:electron/js2c/browser_init:249:1128) at Module._load (node:internal/modules/cjs/loader:785:27) at Function.c._load (node:electron/js2c/asar_bundle:5:13331) at Module.require (node:internal/modules/cjs/loader:1012:19) at require (node:internal/modules/cjs/helpers:94:18) at Object. (C:\Users\Administrator\AppData\Roaming\picgo\node_modules\strtok3\lib\AbstractTokenizer.js:4:25)
at Module._compile (node:internal/modules/cjs/loader:1116:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1169:10)
at Module.load (node:internal/modules/cjs/loader:988:32)
-------Error Stack End-------
2024-10-23 01:17:20 [PicGo SUCCESS] 插件安装成功