Unable push the code into elastic journey

Follow the example,

In the synthetics.config.ts, i have provided the request value

    project: {
      id: xxx,
      url: xxx,
      space: xxx,
    },

Run this command,
SYNTHETICS_API_KEY= npm run push

Why does such an error occur?

Thanks for reaching out, @xyngfei. The error seems to indicate that the configuration isn't correctly set. I have a few questions here:

  • Did you use the wizard to set your your enviroment?

    Usually I get started like so:

    npm install -g @elastic/synthetics 
    npx @elastic/synthetics init your-project-name
    
  • What directory are you when you run SYNTHETICS_API_KEY=<value> npm run push?

I have some resources I've created on this subject on my GitHub which may be helpful.