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

"Stage prod could not be found in your project configuration" even if it's defined #353

Open
1 of 4 tasks
acerbisgianluca opened this issue Apr 16, 2023 · 0 comments
Open
1 of 4 tasks

Comments

@acerbisgianluca
Copy link

I'm submitting a...

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

Expected Behavior

In package.json I've these 3 scripts:

"get-skill-package": "jovo get:platform alexa --clean",
"get-skill-package:dev": "npm run get-skill-package -- --stage dev",
"get-skill-package:prod": "npm run get-skill-package -- --stage prod"

Here is my Jovo configuration, where I've defined 2 stages: dev and prod.

const project = new ProjectConfig({
    defaultStage: 'dev',
    plugins: [
        new AlexaCli({
            skillId: SKILL_ID,
            askProfile: 'mm',
            locales: {
                en: ['en-US'],
            },
        }),
        new GetCommand(),
        new DeployCommand(),
    ],
    stages: {
        dev: {
            endpoint: `${LAMBDA_ARN}-dev`,
        },
        prod: {
            endpoint: `${LAMBDA_ARN}-prod:prod-0`,
        },
    },
});

When I run get-skill-package:dev and get-skill-package:prod, it should pick the correct configuration.

Current Behavior

Currently when I run both command I get a warning that says WARN Stage (dev OR prod) could not be found in your project configuration. Taking default configuration....

The difference is that when I run the dev command, it actually works because it picks the default configuration which is the dev one.
But when I run the prod command, it fails with the below error message.

Error log

WARN Stage prod could not be found in your project configuration. Taking default configuration...

(node:6404) Warning: Accessing non-existent property 'stages' of module exports inside circular dependency

Your Environment

  • Jovo CLI version used: 4.1.6
  • Operating System: Windows 10
@acerbisgianluca acerbisgianluca changed the title Stage prod could not be found in your project configuration even if it's defined "Stage prod could not be found in your project configuration" even if it's defined Apr 17, 2023
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