close

[Solved] Cannot read properties of undefined (reading ‘originalPositionFor’)

Hello Guys, How are you all? Hope You all Are Fine. Today I am trying to run my react app but I am facing following error: Cannot read properties of undefined (reading ‘originalPositionFor’) in Reactjs. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How This Error Occurs ?

I am trying to run my react app but I am facing following error.

TypeError: D:\Project\React\NfcApp\node_modules\history\index.js: Cannot read properties of undefined (reading ‘originalPositionFor’)

How To Solve Cannot read properties of undefined (reading ‘originalPositionFor’) Error ?

  1. How To Solve Cannot read properties of undefined (reading 'originalPositionFor') Error ?

    To Solve Cannot read properties of undefined (reading 'originalPositionFor') Error Here babel/core latest (7.17.0) version released But seems like broken So That Just need to downgrade core to the previous version which is 7.16.12. Just run this command: npm i -D @babel/core@7.16.12 Now, Your error must be solved.

  2. Cannot read properties of undefined (reading 'originalPositionFor')

    To Solve Cannot read properties of undefined (reading 'originalPositionFor') Error Here babel/core latest (7.17.0) version released But seems like broken So That Just need to downgrade core to the previous version which is 7.16.12. Just run this command: npm i -D @babel/core@7.16.12 Now, Your error must be solved.

Solution 1: Downgrade babel/core

Here babel/core latest (7.17.0) version released But seems like broken So That Just need to downgrade core to the previous version which is 7.16.12. Just run this command.

npm i -D @babel/core@7.16.12

Now, Your error must be solved.

Summary

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?

Also, Read

Leave a Comment