Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React-router error #234

Open
adharbert opened this issue May 9, 2018 · 6 comments
Open

React-router error #234

adharbert opened this issue May 9, 2018 · 6 comments

Comments

@adharbert
Copy link

I'm not sure what the error is, but when I installed react-router it isn't working. I get the same error over and over on the new site, if I remove imports for react-router I am able to see the page, but once I log back in, I get the following error:

bundle.js:86 Uncaught ReferenceError: Provider is not defined
at Object. (bundle.js:86)
at webpack_require (bundle.js:20)
at Object. (bundle.js:47)
at webpack_require (bundle.js:20)
at bundle.js:40
at bundle.js:43

Any ideas why this would be an issue?

Thanks!

@maximsan
Copy link

maximsan commented May 9, 2018

I've encountered another error with react-router "Uncaught TypeError: Cannot read property 'func' of undefined". It was fixed by updating to [email protected] as for me. I'm not sure, but maybe it will fix your problem too.

@adharbert
Copy link
Author

Thanks for the response, I tried that last night as well but still have the error. I might blow the project away and start from scratch, it might be a bad download or something.

@nagarajach
Copy link

nagarajach commented May 9, 2018

Please type this command in your command prompt
npm dist-tag ls react-router.

Will find this below output:
$ npm dist-tag ls react-router
latest: 4.1.1
next: 4.0.0
previous: 3.0.5
$ npm dist-tag ls react-router-dom
latest: 4.1.1
next: 4.0.0-beta.8
. So based on this we could install latest version like
npm install --save [email protected].

Might be with this update your issue will get resolved.

@monastyrskiiden
Copy link

Have the same issue as adharbert. Fixed by updating to [email protected] as maximsan said.

@David2913
Copy link

Also, you could consider installing react-router-dom instead of react-router, it seems to be the way to go regarding routing. I used only that dependency and did not encounter any problems

@shrimpdoom1920
Copy link

Thanks @maximsan for sharing this. I thought that I would never finish this course because of this stupid bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants