AppSync Plugin dataSources Error

I cant get AppSync dataSources to work.
This is my yml.

...
mappingTemplates:
  - type: Query
    field: getCourseById
    datasource: ${sls:stage}-content
dataSources:
  - type: AMAZON_DYNAMODB
    name: ${sls:stage}-content
    description: Main content table for ${sls:stage}.
    config:
      tableName: { Ref: "${sls:stage}-content" }
 - type: AWS_LAMBDA
    name: ${sls:stage}-createResources
    description: Data source for resource creation in ${sls:stage}-content table.
    config:
      functionName: ${sls:stage}-createResources

and this is the error Im getting:

TypeError: Cannot read properties of undefined (reading 'replace')
    at ServerlessAppsyncPlugin.getCfnName (/Users/codelicode/Desktop/code/awesomo-serverless/node_modules/serverless-appsync-plugin/src/index.js:1800:17)
    at ServerlessAppsyncPlugin.getDataSourceCfnName (/Users/codelicode/Desktop/code/awesomo-serverless/node_modules/serverless-appsync-plugin/src/index.js:1804:29)
    at /Users/codelicode/Desktop/code/awesomo-serverless/node_modules/serverless-appsync-plugin/src/index.js:1421:22
    at Array.reduce (<anonymous>)
    at ServerlessAppsyncPlugin.getResolverResources (/Users/codelicode/Desktop/code/awesomo-serverless/node_modules/serverless-appsync-plugin/src/index.js:1312:38)
    at ServerlessAppsyncPlugin.addResource (/Users/codelicode/Desktop/code/awesomo-serverless/node_modules/serverless-appsync-plugin/src/index.js:474:35)
    at /Users/codelicode/Desktop/code/awesomo-serverless/node_modules/serverless-appsync-plugin/src/index.js:442:12
    at Array.forEach (<anonymous>)
    at ServerlessAppsyncPlugin.addResources (/Users/codelicode/Desktop/code/awesomo-serverless/node_modules/serverless-appsync-plugin/src/index.js:441:12)
    at after:aws:package:finalize:mergeCustomProviderResources (/Users/codelicode/Desktop/code/awesomo-serverless/node_modules/serverless-appsync-plugin/src/index.js:202:14)
    at PluginManager.runHooks (/Users/codelicode/Desktop/code/awesomo-serverless/node_modules/serverless/lib/classes/plugin-manager.js:530:15)
    at PluginManager.invoke (/Users/codelicode/Desktop/code/awesomo-serverless/node_modules/serverless/lib/classes/plugin-manager.js:565:20)
    at async PluginManager.spawn (/Users/codelicode/Desktop/code/awesomo-serverless/node_modules/serverless/lib/classes/plugin-manager.js:585:5)
    at async PluginManager.runHooks (/Users/codelicode/Desktop/code/awesomo-serverless/node_modules/serverless/lib/classes/plugin-manager.js:530:9)
    at async PluginManager.invoke (/Users/codelicode/Desktop/code/awesomo-serverless/node_modules/serverless/lib/classes/plugin-manager.js:564:9)
    at async PluginManager.spawn (/Users/codelicode/Desktop/code/awesomo-serverless/node_modules/serverless/lib/classes/plugin-manager.js:585:5)
    at async before:deploy:deploy (/Users/codelicode/Desktop/code/awesomo-serverless/node_modules/serverless/lib/plugins/deploy.js:40:11)
    at async PluginManager.runHooks (/Users/codelicode/Desktop/code/awesomo-serverless/node_modules/serverless/lib/classes/plugin-manager.js:530:9)
    at async PluginManager.invoke (/Users/codelicode/Desktop/code/awesomo-serverless/node_modules/serverless/lib/classes/plugin-manager.js:563:9)
    at async PluginManager.run (/Users/codelicode/Desktop/code/awesomo-serverless/node_modules/serverless/lib/classes/plugin-manager.js:604:7)
    at async Serverless.run (/Users/codelicode/Desktop/code/awesomo-serverless/node_modules/serverless/lib/serverless.js:174:5)
    at async /Users/codelicode/Desktop/code/awesomo-serverless/node_modules/serverless/scripts/serverless.js:771:9

Anyone else had similar problems? Feels like Ive tried everything. :woozy_face: