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

Jovo Deploy Alexa Cannot Read Property Length of undefined #292

Open
2 of 4 tasks
alvarocardenasc opened this issue Jan 25, 2022 · 7 comments
Open
2 of 4 tasks

Jovo Deploy Alexa Cannot Read Property Length of undefined #292

alvarocardenasc opened this issue Jan 25, 2022 · 7 comments
Labels
v4 Issues/PRs for v4 of the Jovo CLI

Comments

@alvarocardenasc
Copy link

alvarocardenasc commented Jan 25, 2022

I'm submitting a...

  • Bug report
  • Feature request
  • Documentation issue or request
  • Other... Please describe:

Expected Behavior

Upload skill package

Current Behavior

it doesn't upload skill package

Error log

🚀 Deploying Alexa Skill [stage: dev]
  ✖ Uploading skill package
x Error: --------------------------------------------------------------------------------
›                                                                                 
› Message:
›  Cannot read property 'length' of undefined
›                                                                                 
› Module:
›  JovoCliCore

Your Environment

  • Jovo CLI version used: 4.0.3
  • Operating System: macOS 10.15.5
@jankoenig
Copy link
Member

Hi. Could you share your jovo.project.js file?

@alvarocardenasc
Copy link
Author

alvarocardenasc commented Jan 25, 2022

const { ProjectConfig } = require('@jovotech/cli-core');
const { AlexaCli } = require('@jovotech/platform-alexa');
const { ServerlessCli } = require('@jovotech/target-serverless');

const project = new ProjectConfig({
  defaultStage: 'dev',
  stages: {
    dev: {
      endpoint: '${JOVO_WEBHOOK_URL}',
      plugins: [
        new AlexaCli({
          locales: {
            en: ['en-US', 'en-GB'],
            es: ['es-US']
          },
          askProfile: 'default'
        }),
        new ServerlessCli()
      ],
    },
    prod: {
      endpoint: process.env.ENDPOINT_PROD,
      plugins: [
        new AlexaCli(
          {
            locales: {
              en: ['en-US', 'en-GB'],
              es: ['es-US']
            },
            askProfile: 'default'
          }
        ),
        new ServerlessCli()
      ],
      // ...
    },
  },
});

module.exports = project;

Did I miss something?

@rubenaeg
Copy link
Contributor

Hey @alvarocardenasc, I can't reproduce the behaviour on a clean project with your exact configuration posted above.

image

Could you share a bit more about your process here? What are you building, how are you deploying?

@rubenaeg
Copy link
Contributor

You can also run jovo deploy:platform with the --debug flag to show the stack trace.

@alvarocardenasc
Copy link
Author

This is the stack trace:

Stack: › Error: Cannot read property 'length' of undefined › at Task.run (/PATH../node_modules/@jovotech/cli-core/src/Task.ts:105:17) › at Task.run (/PATH../node_modules/@jovotech/cli-core/src/Task.ts:65:9) › at AlexaHook.deploy (/PATH../node_modules/@jovotech/platform-alexa/src/cli/hooks/DeployHook.ts:226:5) › at EventEmitter.run (//PATH../.nvm/versions/node/v14.17.0/lib/node_modules/@jovotech/cli/node_modules/@jovotech/cli-core/src/EventEmitter.ts:53:7) › at DeployPlatform.run (/PATH../.nvm/versions/node/v14.17.0/lib/node_modules/@jovotech/cli/node_modules/@jovotech/cli-command-deploy/src/commands/deploy.platform.ts:100:5) › at DeployPlatform._run (/PATH../.nvm/versions/node/v14.17.0/lib/node_modules/@jovotech/cli/node_modules/@oclif/command/lib/command.js:43:20) › at Config.runCommand (/PATH../.nvm/versions/node/v14.17.0/lib/node_modules/@jovotech/cli/node_modules/@oclif/config/lib/config.js:173:24) › at Main.run (/PATH../.nvm/versions/node/v14.17.0/lib/node_modules/@jovotech/cli/node_modules/@oclif/command/lib/main.js:27:9) › at Main._run (/PATH../.nvm/versions/node/v14.17.0/lib/node_modules/@jovotech/cli/node_modules/@oclif/command/lib/command.js:43:20)

@rubenaeg
Copy link
Contributor

Could you provide more details about the commands you're using to build and deploy your app?

@alvarocardenasc
Copy link
Author

command to build:
jovo build:platform alexa --stage prod

command to deploy:
jovo deploy:platform alexa --stage prod

@jankoenig jankoenig added the v4 Issues/PRs for v4 of the Jovo CLI label Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v4 Issues/PRs for v4 of the Jovo CLI
Projects
None yet
Development

No branches or pull requests

3 participants