FDK-0004 - Active Environment and Active Context Environment doesn't match

Hi Team,
I have followed the following steps and getting the above error in the title even though the Env and Context are set properly.

Delete .fdk folder 
npm install -g @gofynd/[email protected]
fdk -V
fdk env set -u api.nmz3.de
fdk login -m 9080385050
fdk theme context -t <token> -n <context-name>
fdk env set -n nmz3
fdk theme serve --ssr -false
FDK-0004 - Active Environment and Active Context Environment doesnt match.


Env also set properly

.fdk ->context.json

{
  "theme": {
    "active_context": "nmz3",
    "contexts": {
      "nmz3": {
        "name": "nmz3",
        "application_id": "64a426ed9fa247e05106037f",
        "domain": "netmeds.nmz3.de",
        "company_id": 3,
        "theme_id": "64cb76de96f7e7ab58d970ed",
        "env": "api.nmz3.de"
      }
    }
  },
  "partners": {}
}

Please Help.

@muralidharedam @inderjeet.singh

Thanks,
Nizam

@nizamudeenms do not use fdk env set using api. nmz3.de command. Redo the steps again and check. If you still faces issue get the help from @spvijayanand

@muralidharedam,

Yes initially set using that only. That also didn’t work.

Hello @nizamudeenms, I feel the environment was not set properly, Please use the following commands step by step, and post that it should work.

$ npm install -g @gofynd/[email protected] //install the latest version of FDK_CLI
$ fdk env set -n (env_name) //set the env (use nmz3 directly)
$ fdk login -m (mobile_no)
$ fdk theme new -t (theme_token) -n (theme_name) // to create and add theme

Let me know if you still face any issues.