You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Below I'll show the complete error message I get when attempting sls deploy of my serverless.yml file that's also below.
I've read through the plugin documentation and googled the error message but not finding anything to resolve the error.
I'd appreciate any insight.
jonnyortiz@MacBook-Air backend % sls deploy
Running "serverless" from node_modules
Deploying serverless-appsync-backend to stage dev (us-east-1)
Warning: Invalid AppSync Configuration:
at appSync: must be object
✖ Stack serverless-appsync-backend-dev failed to deploy (0s)
Environment: darwin, node 18.1.0, framework 3.33.0 (local) 3.33.0v (global), plugin 6.2.3, SDK 4.3.2
Credentials: Local, "default" profile
Docs: docs.serverless.com
Support: forum.serverless.com
Bugs: github.com/serverless/serverless/issues
Error:
TypeError: Cannot read properties of undefined (reading 'schema')
at getAppSyncConfig (/Users/jonnyortiz/Google Drive/PERSONAL/UdemyAWSserverlessApps/serverless-appsync-demo/backend/node_modules/serverless-appsync-plugin/lib/getAppSyncConfig.js:45:39)
at ServerlessAppsyncPlugin.loadConfig (/Users/jonnyortiz/Google Drive/PERSONAL/UdemyAWSserverlessApps/serverless-appsync-demo/backend/node_modules/serverless-appsync-plugin/lib/index.js:1122:62)
at _this.hooks.<computed> (/Users/jonnyortiz/Google Drive/PERSONAL/UdemyAWSserverlessApps/serverless-appsync-demo/backend/node_modules/serverless-appsync-plugin/lib/index.js:363:23)
at PluginManager.runHooks (/Users/jonnyortiz/Google Drive/PERSONAL/UdemyAWSserverlessApps/serverless-appsync-demo/backend/node_modules/serverless/lib/classes/plugin-manager.js:530:15)
at PluginManager.invoke (/Users/jonnyortiz/Google Drive/PERSONAL/UdemyAWSserverlessApps/serverless-appsync-demo/backend/node_modules/serverless/lib/classes/plugin-manager.js:563:20)
at async PluginManager.spawn (/Users/jonnyortiz/Google Drive/PERSONAL/UdemyAWSserverlessApps/serverless-appsync-demo/backend/node_modules/serverless/lib/classes/plugin-manager.js:585:5)
at async before:deploy:deploy (/Users/jonnyortiz/Google Drive/PERSONAL/UdemyAWSserverlessApps/serverless-appsync-demo/backend/node_modules/serverless/lib/plugins/deploy.js:40:11)
at async PluginManager.runHooks (/Users/jonnyortiz/Google Drive/PERSONAL/UdemyAWSserverlessApps/serverless-appsync-demo/backend/node_modules/serverless/lib/classes/plugin-manager.js:530:9)
at async PluginManager.invoke (/Users/jonnyortiz/Google Drive/PERSONAL/UdemyAWSserverlessApps/serverless-appsync-demo/backend/node_modules/serverless/lib/classes/plugin-manager.js:563:9)
at async PluginManager.run (/Users/jonnyortiz/Google Drive/PERSONAL/UdemyAWSserverlessApps/serverless-appsync-demo/backend/node_modules/serverless/lib/classes/plugin-manager.js:604:7)
at async Serverless.run (/Users/jonnyortiz/Google Drive/PERSONAL/UdemyAWSserverlessApps/serverless-appsync-demo/backend/node_modules/serverless/lib/serverless.js:179:5)
at async /Users/jonnyortiz/Google Drive/PERSONAL/UdemyAWSserverlessApps/serverless-appsync-demo/backend/node_modules/serverless/scripts/serverless.js:834:9
jonnyortiz@MacBook-Air backend %
Below I'll show the complete error message I get when attempting sls deploy of my serverless.yml file that's also below.
I've read through the plugin documentation and googled the error message but not finding anything to resolve the error.
I'd appreciate any insight.
Here's my serverless.yml
Here's the resources.yml file
The text was updated successfully, but these errors were encountered: