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

when updating the example everything will break please update #410

Closed
dcd-api opened this issue Aug 31, 2021 · 4 comments
Closed

when updating the example everything will break please update #410

dcd-api opened this issue Aug 31, 2021 · 4 comments

Comments

@dcd-api
Copy link

dcd-api commented Aug 31, 2021

Hello, I'm trying to understand how to get webpack to work with express, but when I tried the example in this git, it's very outdated and won't work anymore.
I get this message :

'WEBPACK_CONFIG' is not recognized as an internal or external command,

and when I try to update it all and using the latest webpack and latest webpack-dev-server
updated package.json: https://gist.github.com/dcd-api/90d0b9b872a7a6ed7aacbf7d938cb025
And I changed the npm run command to :

    "start": "webpack --config ./webpack.config.multientry.js node server.js"

I get this error:

[00:41:31.917] [ERROR] [webpack-cli] Failed to load 'C:\webpack-hot-middleware-master\example\webpack.config.multientry.js' config
[00:41:31.922] [ERROR] [webpack-cli] TypeError: webpack.optimize.OccurrenceOrderPlugin is not a constructor
    at Object.<anonymous> (C:\webpack-hot-middleware-master\example\webpack.config.multientry.js:21:5)

I want to see a good example. I searched on GitHub but found nothing good I hope someone can build the best model ever because it's beneficial to understand it!
Thanks so much for all the effort in this project.

@dcd-api
Copy link
Author

dcd-api commented Aug 31, 2021

i hope someone can update it its very outdated and it will be very helpfull to learn from

@dyongerwen42
Copy link

Is this repo death ?

@alexander-akait
Copy link
Member

Problem not related to webpack-hot-middleware, webpack.optimize.OccurrenceOrderPlugin was removed for webpack v5

@alexander-akait
Copy link
Member

Fixed

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

3 participants