Giter VIP home page Giter VIP logo

Comments (4)

shellscape avatar shellscape commented on May 11, 2024

a PR here would be the best route, rather than an issue. :)

from koa-webpack.

leomao avatar leomao commented on May 11, 2024

a PR here would be the best route, rather than an issue. :)

Yes, you're right. But I'm not sure if updating the dependencies will cause other problems or not.

I found that the actual problem is that koa-webpack depends on webpack=^2.3.0, which is not compatible with webpack=^3.0.0. So, when using webpack 3.0, this module will still use webpack 2.3 (in its node_modules). This leads to the issue mentioned above.

Is it safe to change the dependency version to webpack>=2.3?

from koa-webpack.

tkodev avatar tkodev commented on May 11, 2024

I got the same error but I just passed my own webpack instance (3.3.*) which fixed it:

import Webpack from 'webpack';
import config from './webpack.config.js';
const compiler = Webpack(config);
app.use(middleware({
  compiler: compiler
}))

from koa-webpack.

shellscape avatar shellscape commented on May 11, 2024

Landed in 1.0.0

from koa-webpack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.