Code Monkey home page Code Monkey logo

Comments (8)

YannickBochatay avatar YannickBochatay commented on August 27, 2024 8

+1

from bower-webpack-plugin.

iosonosempreio avatar iosonosempreio commented on August 27, 2024 2

I have the same issue even if i try to only install the plugin and not to require any components. I'm wondering if this could be related to the fact that debug.jsis located in the ../debug folder and not inside any dist folder. How do we fix that?

from bower-webpack-plugin.

jlsutherland avatar jlsutherland commented on August 27, 2024 2

See final comment of debug-js/debug#242 for working fix

from bower-webpack-plugin.

iosonosempreio avatar iosonosempreio commented on August 27, 2024

UPDATE: I can confirm that if I manually create the dist folder, the error disappears.

from bower-webpack-plugin.

korzhyk avatar korzhyk commented on August 27, 2024

Same problem.

from bower-webpack-plugin.

pakdev avatar pakdev commented on August 27, 2024

Are you sure webpack should be looking in 'node_modules'? Did you manually rename your bower directory to that?

from bower-webpack-plugin.

rkmax avatar rkmax commented on August 27, 2024

I have the same problem. I made manually the dist folder but it doesn't resolve the problem

from bower-webpack-plugin.

sza-1 avatar sza-1 commented on August 27, 2024

@jlsutherland there is not a nice solution if you want to install packages with npm/yarn but this packages actually just a Bower packages without any module system (like angular-bootstrap-toggle).

I solved the issue in the following quick and ugly way (add to Webpack config):

      externals: [
        (context, request, callback) => {
          if (request == 'debug')
            callback(null, 'function(namespace) { return namespace; }');
          else callback();
        }
      ]

It just replaces debug module with empty function. It will not work if you need working debug module.

from bower-webpack-plugin.

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.