Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

React Hot Loader can't load generated artifacts #67

Closed
kalekseev opened this issue Sep 5, 2018 · 3 comments
Closed

React Hot Loader can't load generated artifacts #67

kalekseev opened this issue Sep 5, 2018 · 3 comments

Comments

@kalekseev
Copy link
Contributor

Hi @alloy, thanks for the project.
I've tried it with my project and I get the following error when I use webpack-dev-server with react hot loader:
screenshot from 2018-09-06 00-16-38
This error happen on page refresh, on HMR the page renders without such problems.
I would appreciate any ideas how that can be mitigated.

@alloy
Copy link
Member

alloy commented Sep 6, 2018

Hmm, these are all types so shouldn’t even really make their way to the browser. I.e. they should get compiled away entirely.

@kalekseev
Copy link
Contributor Author

@alloy it seems like react hot module not always compile generated directory, I found a similar issue gaearon/react-hot-loader#1032. I assume we can't do match with that until we have types in generated files, maybe we should mention that issue in readme though.

@alloy
Copy link
Member

alloy commented Sep 6, 2018

That’s unfortunate. From the linked issue I’m not entirely sure I understand what is actually causing it, though. In case you feel like you have a good grasp, mind sending a PR for the README that outlines the issue?

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

No branches or pull requests

2 participants