Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
20
rated 0 times [  27] [ 7]  / answers: 1 / hits: 180604  / 7 Years ago, sat, july 8, 2017, 12:00:00

I am using React and Redux to develop a webapp and when I started up my project I got this:



Line 13:  Unexpected use of 'location'  no-restricted-globals

Search for the keywords to learn more about each error.


I search a lot about how to resolve it, but none of the answers I found helped me, so I turned to Stack overflow.



Does anyone know how to fix this error? I appreciate all the help I can get.


More From » reactjs

 Answers
5

Try adding window before location (i.e. window.location).


[#57155] Friday, July 7, 2017, 7 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
madelyn

Total Points: 449
Total Questions: 100
Total Answers: 100

Location: Seychelles
Member since Fri, May 7, 2021
3 Years ago
madelyn questions
Wed, Jul 28, 21, 00:00, 3 Years ago
Wed, Jul 14, 21, 00:00, 3 Years ago
Sat, Nov 7, 20, 00:00, 4 Years ago
Thu, Sep 3, 20, 00:00, 4 Years ago
;