Home > Mobile >  Module not found: Can't resolve 'react-route-dom' I tried alot but not able to solve
Module not found: Can't resolve 'react-route-dom' I tried alot but not able to solve

Time:12-19

I imported react-router dom also but cannot able to remove this error.

enter image description here

App.js

enter image description here

Chat.js

enter image description here

CodePudding user response:

You are missing an r in the useParams import.

CodePudding user response:

Your code is not compiling because you have a typo.

You are importing useParams from 'react-route-dom' instead of 'react-router-dom'.

Just change that and it should compile.

  • Related