-
Notifications
You must be signed in to change notification settings - Fork 296
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
Error: Aborted because ... is not accepted #70
Comments
"Not Accepted" errors are almost always because of a mistake or bug in the apply() code/handler. Do you see the same issue on webpack v1? 2.0 is pretty new - I don't know whether the HMR code has changed much, but it could be related. |
Update: But there are two small issues which I'm not sure are even solvable:
|
How much do you need the v2 changes? Sounds like it might be best to stay on v1 for now if you're pressed for time to deal with such issues. |
Yeah, I've now already gone back to webpack v1. I'll upgrade when it is a bit more stable. Thank you! |
Any news on this one? |
I've not had a chance to look into any of the webpack 2 stuff yet. Any help is appreciated. |
As @SosZ uncovered, the signature for module.hot.check has changed in webpack 2 to using promises instead of a callback. The new version of |
Keeping the issue open until the fix is confirmed. If anyone is able test the master branch and feed back that'd be great. |
It turns out that the pull request I made only fixed this error message. There are other errors to get things working properly with webpack 2. I'm working through some of them. Hopefully they can all be done without breaking compatibility with webpack 1. |
I submitted a new pull request to take care of the change in webpack 2 to |
The master branch is working as designed for me. @SosZ are you able to re-test? You would need to update your package.json to have the latest version of webpack 2 and webpack-hot-middleware pulled from the master branch.
I am working on a project that doesn't use react, but it uses monkey-hot-loader instead. I had to patch monkey-hot-loader to replace named export functions and be able to parse the es2015 source. jlongster/monkey-hot-loader#5 |
Thank you! But I won't be able to test for a while. |
@phaistonian would you be able to try this out and confirm its working ok? |
I've done a bit of testing myself, looks to be working correctly on webpack 2 and webpack 1. Will aim to release later today unless someone else spots an issue. |
@glenjamin I will give it a try the soonest, though I am afraid the release will come first since I have a hectic day to deal with. |
Released as |
When trying to hot-update React components with webpack-hot-middleware, I receive the following error every time:
I'm not exactly sure why that happens... But I've noticed that:
I can hot-update anything else (manually replacing my redux-reducer using
module.hot.accept
, reload css using style-loader, etc.).Stepping through with the debugger, I can see that in file
process-update.js
line 32, The callback function given tomodule.hot.check
is never called. It seems thehotCheck()
function assigns itsapply
parameter (the callback) to a globalhotApplyOnUpdate
. This function is then given tohotApply()
which expects to receive anoptions
object, and not a callback.Searching for all usages of
hotApplyOnUpdate
yields:true
;apply
parameter every timehotCheck()
is called.hotApply()
insidehotUpdateDownloaded()
.So, is it a problem with webpack's HMR plugin?
I'm using:
The text was updated successfully, but these errors were encountered: