-
Notifications
You must be signed in to change notification settings - Fork 799
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
[3.0] Ignored an update to unaccepted module with React Router #315
Comments
After searching better I found this: This seem to be a solution, but it does not work for me: gaearon/react-hot-boilerplate#61 (comment) |
Hi @olegstepura, sorry for taking so long to respond! I'll try to respond to each of your questions.
Yes, that will force the
I agree, that code seems to live in the main Webpack repo, might be worth opening an issue there.
Does
This is the approach that seems to work best, I added a minimal example with RR here. I export the routes as a function (plain object config works as well), and specifically reload that file and pass as props to Let me know if those tips help, I may try to make a PR to your repo to demonstrate a solution, but not being familiar with TypeScript slowed me down there 😄 |
Going to close this out because I haven't heard back, and the problem looks like that you're not reloading the routes. Please re-open if you're still having the issue! |
Hi! Sorry I didn't answer anything before. I haven't had time to check since I switched back to older but working configuration in the project I worked on. But now this project is kind of freezed, so I will definitely try to use |
@olegstepura this seems like an old post, but I've been looking into this issue and I found that using this plugin: |
@pts-moog16 yep, I already know and use that =) But thanks anyway. I forgot to mention this here. |
BTW I'm now using |
Hi!
Not sure if this is the right place to ask, but please guide me.
I tried to use
[email protected]
+[email protected]
with[email protected]
. it works. If I add some nested React components - it also works (triggering reload if inner component is changed).But later I tried to add
react-router
to this.No I got this warning in console:
It's hard to understand what those module ids mean. It would be very helpful if it were component paths or some meaningful values (this seem to be an issue to report to https://github.com/webpack/webpack-dev-server, right?)
Here are the changes (project uses Typescript):
https://github.com/olegstepura/awesome-typescript-loader-test/pull/1/files
It's runnable, with some warnings from
awesome-typescript-loader
after App is ready, please just ignore it.I tried making
router/routes.tsx
to export a function (second commit in PR), but this does not help.So the main question here is: Is it possible to have hot reloading working with
react-router
?Thanks!
The text was updated successfully, but these errors were encountered: