Solved: Uncaught TypeError: Cannot read properties of null (reading 'useRef')

Yesterday I had the terrible surprise of all my projects is receiving this error message, I partially correct the CDN but the menus that exists dashboard all are appearing this error.

Does anyone know a solution? I believe it is some evil formation in the Node_Module or CDN folder.
When we run locally on the machine the app works smoothly with NPM RUN DEV.

Maybe Rechart is breaking? I’m testing the possible mistakes

ERROR:
“Uncaught TypeError: Cannot read properties of null (reading ‘useRef’)”

Partially soluction: Index.html cdn:

SOLUTION:
I corrected the error replacing the rechart.js with chart.js and replacing the react CDN as above.

2 Likes