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

载入插件报错 #8

Closed
A-Kevin1217 opened this issue Jun 26, 2024 · 2 comments
Closed

载入插件报错 #8

A-Kevin1217 opened this issue Jun 26, 2024 · 2 comments

Comments

@A-Kevin1217
Copy link

报错如下

[11:29:36.063][ERRO] 载入插件错误:�[31mBing�[39m
[11:29:36.064][ERRO] TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /root/TRSS_AllBot/Miao-Yunzai/plugins/gpti-plugin/node_modules/.pnpm/gpti@2.1.7/node_modules/gpti/main.ts
    at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:176:9)
    at defaultGetFormat (node:internal/modules/esm/get_format:219:36)
    at defaultLoad (node:internal/modules/esm/load:133:22)
    at async ModuleLoader.load (node:internal/modules/esm/loader:554:7)
    at async ModuleLoader.moduleProvider (node:internal/modules/esm/loader:435:45) {
  code: 'ERR_UNKNOWN_FILE_EXTENSION'
}
[11:29:36.066][ERRO] 载入插件错误:�[31mChatGPT Web�[39m
[11:29:36.067][ERRO] TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /root/TRSS_AllBot/Miao-Yunzai/plugins/gpti-plugin/node_modules/.pnpm/gpti@2.1.7/node_modules/gpti/main.ts
    at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:176:9)
    at defaultGetFormat (node:internal/modules/esm/get_format:219:36)
    at defaultLoad (node:internal/modules/esm/load:133:22)
    at async ModuleLoader.load (node:internal/modules/esm/loader:554:7)
    at async ModuleLoader.moduleProvider (node:internal/modules/esm/loader:435:45) {
  code: 'ERR_UNKNOWN_FILE_EXTENSION'
}
[11:29:36.068][ERRO] 载入插件错误:�[31mChatGPT�[39m
[11:29:36.068][ERRO] TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /root/TRSS_AllBot/Miao-Yunzai/plugins/gpti-plugin/node_modules/.pnpm/gpti@2.1.7/node_modules/gpti/main.ts
    at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:176:9)
    at defaultGetFormat (node:internal/modules/esm/get_format:219:36)
    at defaultLoad (node:internal/modules/esm/load:133:22)
    at async ModuleLoader.load (node:internal/modules/esm/loader:554:7)
    at async ModuleLoader.moduleProvider (node:internal/modules/esm/loader:435:45) {
  code: 'ERR_UNKNOWN_FILE_EXTENSION'
}
[11:29:36.069][ERRO] 载入插件错误:�[31mDALL-E Mini�[39m
[11:29:36.069][ERRO] TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /root/TRSS_AllBot/Miao-Yunzai/plugins/gpti-plugin/node_modules/.pnpm/gpti@2.1.7/node_modules/gpti/main.ts
    at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:176:9)
    at defaultGetFormat (node:internal/modules/esm/get_format:219:36)
    at defaultLoad (node:internal/modules/esm/load:133:22)
    at async ModuleLoader.load (node:internal/modules/esm/loader:554:7)
    at async ModuleLoader.moduleProvider (node:internal/modules/esm/loader:435:45) {
  code: 'ERR_UNKNOWN_FILE_EXTENSION'
}
[11:29:36.069][ERRO] 载入插件错误:�[31mDALL·E�[39m
[11:29:36.070][ERRO] TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /root/TRSS_AllBot/Miao-Yunzai/plugins/gpti-plugin/node_modules/.pnpm/gpti@2.1.7/node_modules/gpti/main.ts
    at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:176:9)
    at defaultGetFormat (node:internal/modules/esm/get_format:219:36)
    at defaultLoad (node:internal/modules/esm/load:133:22)
    at async ModuleLoader.load (node:internal/modules/esm/loader:554:7)
    at async ModuleLoader.moduleProvider (node:internal/modules/esm/loader:435:45) {
  code: 'ERR_UNKNOWN_FILE_EXTENSION'
}
[11:29:36.070][ERRO] 载入插件错误:�[31mEMI�[39m
[11:29:36.070][ERRO] TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /root/TRSS_AllBot/Miao-Yunzai/plugins/gpti-plugin/node_modules/.pnpm/gpti@2.1.7/node_modules/gpti/main.ts
    at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:176:9)
    at defaultGetFormat (node:internal/modules/esm/get_format:219:36)
    at defaultLoad (node:internal/modules/esm/load:133:22)
    at async ModuleLoader.load (node:internal/modules/esm/loader:554:7)
    at async ModuleLoader.moduleProvider (node:internal/modules/esm/loader:435:45) {
  code: 'ERR_UNKNOWN_FILE_EXTENSION'
}
[11:29:36.071][ERRO] 载入插件错误:�[31mLLaMA-2�[39m
[11:29:36.071][ERRO] TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /root/TRSS_AllBot/Miao-Yunzai/plugins/gpti-plugin/node_modules/.pnpm/gpti@2.1.7/node_modules/gpti/main.ts
    at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:176:9)
    at defaultGetFormat (node:internal/modules/esm/get_format:219:36)
    at defaultLoad (node:internal/modules/esm/load:133:22)
    at async ModuleLoader.load (node:internal/modules/esm/loader:554:7)
    at async ModuleLoader.moduleProvider (node:internal/modules/esm/loader:435:45) {
  code: 'ERR_UNKNOWN_FILE_EXTENSION'
}
[11:29:36.072][ERRO] 载入插件错误:�[31mProdia Stable-Diffusion�[39m
[11:29:36.072][ERRO] TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /root/TRSS_AllBot/Miao-Yunzai/plugins/gpti-plugin/node_modules/.pnpm/gpti@2.1.7/node_modules/gpti/main.ts
    at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:176:9)
    at defaultGetFormat (node:internal/modules/esm/get_format:219:36)
    at defaultLoad (node:internal/modules/esm/load:133:22)
    at async ModuleLoader.load (node:internal/modules/esm/loader:554:7)
    at async ModuleLoader.moduleProvider (node:internal/modules/esm/loader:435:45) {
  code: 'ERR_UNKNOWN_FILE_EXTENSION'
}
[11:29:36.072][ERRO] 载入插件错误:�[31mProdia�[39m
[11:29:36.073][ERRO] TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /root/TRSS_AllBot/Miao-Yunzai/plugins/gpti-plugin/node_modules/.pnpm/gpti@2.1.7/node_modules/gpti/main.ts
    at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:176:9)
    at defaultGetFormat (node:internal/modules/esm/get_format:219:36)
    at defaultLoad (node:internal/modules/esm/load:133:22)
    at async ModuleLoader.load (node:internal/modules/esm/loader:554:7)
    at async ModuleLoader.moduleProvider (node:internal/modules/esm/loader:435:45) {
  code: 'ERR_UNKNOWN_FILE_EXTENSION'
}
[11:29:36.073][ERRO] 载入插件错误:�[31mStable-Diffusion 1.5�[39m
[11:29:36.073][ERRO] TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /root/TRSS_AllBot/Miao-Yunzai/plugins/gpti-plugin/node_modules/.pnpm/gpti@2.1.7/node_modules/gpti/main.ts
    at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:176:9)
    at defaultGetFormat (node:internal/modules/esm/get_format:219:36)
    at defaultLoad (node:internal/modules/esm/load:133:22)
    at async ModuleLoader.load (node:internal/modules/esm/loader:554:7)
    at async ModuleLoader.moduleProvider (node:internal/modules/esm/loader:435:45) {
  code: 'ERR_UNKNOWN_FILE_EXTENSION'
}
[11:29:36.073][ERRO] 载入插件错误:�[31mStable-Diffusion 2.1�[39m
[11:29:36.073][ERRO] TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /root/TRSS_AllBot/Miao-Yunzai/plugins/gpti-plugin/node_modules/.pnpm/gpti@2.1.7/node_modules/gpti/main.ts
    at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:176:9)
    at defaultGetFormat (node:internal/modules/esm/get_format:219:36)
    at defaultLoad (node:internal/modules/esm/load:133:22)
    at async ModuleLoader.load (node:internal/modules/esm/loader:554:7)
    at async ModuleLoader.moduleProvider (node:internal/modules/esm/loader:435:45) {
  code: 'ERR_UNKNOWN_FILE_EXTENSION'
}

已按照README流程安装,依然出现此报错

@CikeyQi
Copy link
Owner

CikeyQi commented Jun 26, 2024

请降级 gpti 依赖降级到 2.1.3 版本,使用命令 pnpm add gpti@2.1.3

@CikeyQi CikeyQi closed this as completed Jun 26, 2024
@A-Kevin1217
Copy link
Author

pnpm add gpti@2.1.3

依旧出现此报错

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