Code Monkey home page Code Monkey logo

Comments (8)

kevin-miles avatar kevin-miles commented on June 4, 2024 5

@Inoir @RobNielsen515 @MikaAK @jantimon

hi, i had issues with favicons-webpack-plugin locking up the build and i believe i found the root cause + solution.

I was running into an issue locally with node v4.4.5:

ModuleBuildError: Module build failed: TypeError: Buffer.alloc is not a function

This occurs in /node_modules/to-ico/index.js:15:21.

Reason: Buffer API is only available in v5.10.0+.

Fix: use a node version manager such as NVM and upgrade to v5.10.0+

from favicons-webpack-plugin.

RobNielsen515 avatar RobNielsen515 commented on June 4, 2024 3

I'm having the same issue with webpack 1.13.0. Removing the plugin resolves the issue as reported above.

EDIT: after posting I managed to get it working.

It didn't like the path to my icon. I had:
logo: 'src/images/icon.png',

I changed it to:
logo: './src/images/icon.png',

and that made it work. An error message would be helpful if the icon can't be found.

from favicons-webpack-plugin.

jantimon avatar jantimon commented on June 4, 2024

Hmm do you have any idea why?

from favicons-webpack-plugin.

MikaAK avatar MikaAK commented on June 4, 2024

No clue unfortunately, it just stops, I don't know the internals of this plugin well enough to say either 😞

from favicons-webpack-plugin.

Inoir avatar Inoir commented on June 4, 2024

Having same issue. Changing the path didnt help me.
Im using webpack2 and do net get any errors.

from favicons-webpack-plugin.

RobNielsen515 avatar RobNielsen515 commented on June 4, 2024

Some additional info. I upgraded some node modules today and I ran into the problem again. I upgraded to node 6.5 (Mac) and the problem went away.

from favicons-webpack-plugin.

jantimon avatar jantimon commented on June 4, 2024

@kevin-miles that's a nice find - and kind of sad that the npm registry is so complicated to use..

from favicons-webpack-plugin.

felipeleusin avatar felipeleusin commented on June 4, 2024

you can add in your package.json { "engines" : { "node" : ">=5.10.0" } } that will trigger warning when people install the package

from favicons-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.