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

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

Closed
callzhang opened this issue Nov 16, 2024 · 1 comment
Closed

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

callzhang opened this issue Nov 16, 2024 · 1 comment

Comments

@callzhang
Copy link

callzhang commented Nov 16, 2024

按照教程走了,但是得到这个错误,我并没有用 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	
@callzhang callzhang changed the title Netlify 部署失败 Netlify 部署失败: SurgioError: Provider 配置校验失败 Nov 16, 2024
@geekdada
Copy link
Member

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

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