surgioproject / surgio

Generating rules for Surge, Clash, Quantumult like a PRO
https://surgio.js.org
MIT License
1.62k stars 138 forks source link

Netlify 部署失败: SurgioError: Provider 配置校验失败 #284

Closed callzhang closed 1 week ago

callzhang commented 1 week ago

按照教程走了,但是得到这个错误,我并没有用 ssdprovider:

Nov 16, 04:55:17 AM: af0f6006 [Nest] 16  - 11/15/2024, 8:55:21 PM     LOG [NestFactory] Starting Nest application...
Nov 16, 04:55:17 AM: af0f6006 [Nest] 16  - 11/15/2024, 8:55:21 PM     LOG [InstanceLoader] PassportModule dependencies initialized +56ms
Nov 16, 04:55:17 AM: af0f6006 [Nest] 16  - 11/15/2024, 8:55:21 PM     LOG [InstanceLoader] ConfigHostModule dependencies initialized +1ms
Nov 16, 04:55:17 AM: af0f6006 [Nest] 16  - 11/15/2024, 8:55:21 PM     LOG [InstanceLoader] ServeStaticModule dependencies initialized +0ms
Nov 16, 04:55:17 AM: af0f6006 [Nest] 16  - 11/15/2024, 8:55:21 PM     LOG [InstanceLoader] ConfigModule dependencies initialized +0ms
Nov 16, 04:55:17 AM: af0f6006 [Nest] 16  - 11/15/2024, 8:55:21 PM   ERROR [ExceptionHandler] Provider 配置校验失败
Nov 16, 04:55:17 AM: af0f6006 SurgioError: Provider 配置校验失败
Nov 16, 04:55:17 AM: af0f6006 at new Provider (/var/task/node_modules/surgio/src/provider/Provider.ts:36:13)
Nov 16, 04:55:17 AM: af0f6006 at new SsdProvider (/var/task/node_modules/surgio/src/provider/SsdProvider.ts:27:5)
Nov 16, 04:55:17 AM: af0f6006 at getProvider (/var/task/node_modules/surgio/src/provider/index.ts:62:14)
Nov 16, 04:55:17 AM: af0f6006 at /var/task/node_modules/@surgio/gateway/src/surgio/surgio-helper.ts:58:29
Nov 16, 04:55:17 AM: af0f6006 at readProvider (/var/task/node_modules/@surgio/gateway/src/surgio/surgio-helper.ts:63:9)
Nov 16, 04:55:17 AM: af0f6006 at SurgioHelper.readProviders (/var/task/node_modules/@surgio/gateway/src/surgio/surgio-helper.ts:73:28)
Nov 16, 04:55:17 AM: af0f6006 at SurgioHelper.init (/var/task/node_modules/@surgio/gateway/src/surgio/surgio-helper.ts:37:5)
Nov 16, 04:55:17 AM: af0f6006 at Injector.instantiateClass (/var/task/node_modules/@nestjs/core/injector/injector.js:355:37)
Nov 16, 04:55:17 AM: af0f6006 at callback (/var/task/node_modules/@nestjs/core/injector/injector.js:56:34)
Nov 16, 04:55:17 AM: af0f6006 at Injector.resolveConstructorParams (/var/task/node_modules/@nestjs/core/injector/injector.js:136:24)
Nov 16, 04:55:17 AM: af0f6006 at Injector.loadInstance (/var/task/node_modules/@nestjs/core/injector/injector.js:61:13)
Nov 16, 04:55:17 AM: af0f6006 at Injector.loadProvider (/var/task/node_modules/@nestjs/core/injector/injector.js:88:9)
Nov 16, 04:55:17 AM: af0f6006 at /var/task/node_modules/@nestjs/core/injector/instance-loader.js:56:13
Nov 16, 04:55:17 AM: af0f6006 at async Promise.all (index 4)
Nov 16, 04:55:17 AM: af0f6006 at InstanceLoader.createInstancesOfProviders (/var/task/node_modules/@nestjs/core/injector/instance-loader.js:55:9)
Nov 16, 04:55:17 AM: af0f6006 at /var/task/node_modules/@nestjs/core/injector/instance-loader.js:40:13
Nov 16, 04:55:17 AM: af0f6006 RequestId: af0f6006-378f-4822-b286-7551a9c17ee0 Error: Runtime exited with error: exit status 1
Nov 16, 04:55:17 AM: af0f6006 Runtime.ExitErrorN
ov 16, 04:55:17 AM: af0f6006 Duration: 142.79 ms    Memory Usage: 173 MB    Init Duration: 2123.25 ms   
geekdada commented 1 week ago

请检查你的配置,确保在本地能够生成后再部署到 Netlify