Are you talking about Lightroom (Lr icon) or Lightroom Classic (LrC icon)? What version NUMBER?
What is your operating system version NUMBER?
What happens when you try to edit NEF or DNG files? Describe in detail. If there is an error message, please quote the exact complete unedited word-for-word error message.