skip to Main Content

Whenever , I try to run the code, I get below error. I am not using useNavigate anywhere.

Error

Folder structure

2

Answers


  1. Chosen as BEST ANSWER

    I have solved this error. Steps

    1. Clean the npm cache ( npm cache clean )
    2. Stop the application.
    3. Start app again the error will be rectified.

  2. In the title, you said that there is no file named listItems.js but the file is there but is named listItems.tsx.

    The problem with this file is they are not following the correct name convention for React, try changing it to ListItems.tsx

    listItems.js

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search