shellscape / koa-webpack

Development and Hot Reload Middleware for Koa2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

koa-webpack 5.* on egg framework of koa2 can not work

my9074 opened this issue · comments

commented

The Issues page for this repository is not a support forum, it is for reporting potential bugs in this module, which
composes webpack-hot-middleware and webpack-dev-middle for use with koa2.
If you have arrived here because you cannot get webpack-hot-middleware
or webpack-dev-middleware working, please review the documentation
for the respective middleware you are experiencing a problem with. If you proceed with this form, please fill out all fields, or your issue may be closed as "invalid." Please remove this header to acknowledge this message.

  • Node Version: 8.11.1
  • NPM Version: 5.6.0
  • koa Version: 2
  • koa-wepback Version: 5.0.2

Expected Behavior

Actual Behavior

My koa framwork is egg . I update koa-webpack 3.* to 5.0.2, koa-webpack can not work. but i can not find reason with debug ( koa-webpack 3.* is ok ).

wx20180616-194857 2x

And this is my egg config of koa-webpack 5.*:

wx20180616-194938 2x

On koa-webpack 3.* it ok.
wx20180616-195752 2x
wx20180616-195809 2x

How can we reproduce the behavior?

Please don't use screenshots when you could simply use code blocks and paste the code.

I'm not familiar with eggjs nor how it works, or what its requirements are. So I cannot help in this case.

This is also not a support forum, as the header of the issue template indicates. There are always breaking changes between major versions, and you should read the change list and breaking changes for each major version on the Releases page.