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

TypeError: Cannot read property 'Outputs' of undefined #136

Open
fabiorogeriosj opened this issue Oct 8, 2020 · 0 comments
Open

TypeError: Cannot read property 'Outputs' of undefined #136

fabiorogeriosj opened this issue Oct 8, 2020 · 0 comments

Comments

@fabiorogeriosj
Copy link

fabiorogeriosj commented Oct 8, 2020

I have some error when my gitlab-ci exec serverless deploy:

> serverless deploy
Serverless: Packaging service...
Serverless: Excluding development dependencies...
 
  Type Error ---------------------------------------------
 
  TypeError: Cannot read property 'Outputs' of undefined
      at ServerlessPluginSplitStacks.nestedOutput (/builds/tindin/api-game/node_modules/serverless-plugin-split-stacks/lib/utils.js:84:11)
      at Object.ResourceAndDependencyMigrated (/builds/tindin/api-game/node_modules/serverless-plugin-split-stacks/lib/replace-references.js:33:31)
      at ServerlessPluginSplitStacks.reconcile (/builds/tindin/api-game/node_modules/serverless-plugin-split-stacks/lib/utils.js:293:27)
      at /builds/tindin/api-game/node_modules/serverless-plugin-split-stacks/lib/replace-references.js:16:12
      at arrayEach (/builds/tindin/api-game/node_modules/lodash/lodash.js:516:11)
      at Function.forEach (/builds/tindin/api-game/node_modules/lodash/lodash.js:9368:14)
      at /builds/tindin/api-game/node_modules/serverless-plugin-split-stacks/lib/replace-references.js:15:7
      at /builds/tindin/api-game/node_modules/lodash/lodash.js:4925:15
      at baseForOwn (/builds/tindin/api-game/node_modules/lodash/lodash.js:2990:24)
      at /builds/tindin/api-game/node_modules/lodash/lodash.js:4894:18
      at Function.forEach (/builds/tindin/api-game/node_modules/lodash/lodash.js:9368:14)
      at ServerlessPluginSplitStacks.replaceReferences (/builds/tindin/api-game/node_modules/serverless-plugin-split-stacks/lib/replace-references.js:6:5)
      at /builds/tindin/api-game/node_modules/serverless-plugin-split-stacks/split-stacks.js:64:24

versions in my package.json:

"devDependencies": {
		"cross-env": "^7.0.2",
		"eslint": "^6.8.0",
		"handlebars": "^4.5.0",
		"jest": "^23.4.2",
		"mongo-mock": "^4.0.0",
		"serverless": "^1.80.0",
		"serverless-offline-scheduler": "^0.3.7",
		"serverless-offline": "^6.5.0",
    	"serverless-plugin-split-stacks": "^1.9.3",
		"serverless-plugin-tracing": "^2.0.0"
	},
	"dependencies": {
		"aws-sdk": "^2.578.0",
		"axios": "^0.18.0",
		"csvtojson": "^2.0.10",
		"dotenv": "^8.1.0",
		"jsonwebtoken": "^8.5.1",
		"moment": "^2.22.2",
		"moment-duration-format": "^2.3.2",
		"moment-timezone": "^0.5.26",
		"mongodb": "^3.1.1",
		"random-name": "^0.1.2",
		"shortid": "^2.2.15",
		"uuid": "^3.4.0"
	}

Config in my serverless.yml:

service: api

custom:
  splitStacks:
    perFunction: true
    perType: false
    perGroupFunction: false

provider:
  name: aws
  runtime: nodejs12.x
  stage: production
  region: us-east-1

functions:
  login:
    handler: functions/player/login.handler
    events:
      - http:
          path: players/login
          method: post
          cors: true

plugins:
  - serverless-offline
  - serverless-offline-scheduler
  - serverless-plugin-split-stacks

Can someone help me?

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

1 participant