After I did an update of the nRF connect together with the programmer app, I found out that DKs could not be recognized once I click the Select Device.
This was tried with both the Nrf9160 and Nrf5340 DKs and none of them was detected.
Whenever I turn on the DK , the jlink window shows up and I can do the code with application of the command line tools.
2021-11-03T14:32:35.786Z DEBUG App path:C :\Users\Amit\.nrfconnect-apps\node_modules\pc-nrfconnect-programmer
2021-11-03T14:32:35.786Z DEBUG nRFConnect 3.8.0 is not supported by the app (^3.8.0)
2021-11-03T14:32:35.786Z DEBUG nRFConnect path:C :\Users\Amit\AppData\Local\Programs\nrfconnect\resources\app.asar
2021-11-03T14:32:35.786Z DEBUG HomeDir: C:\Users\Amit
2021-11-03T14:32:35.786Z DEBUG TmpDir: C:\Users\Amit\AppData\Local\Temp
2021-11-03T14:32:36.064Z ERROR Error while probing devices: EnumerateWorker json error
I installed the nRF connect but I could not find the solution to this issue.