Giter Site home page Giter Site logo

Comments (17)

ykravv avatar ykravv commented on August 15, 2024 3

Hmm, I'm trying to run it inside fresh docker container and getting these error. Anyway, thank you
It's strange, but locally with NODE_ENV=production everything is working. So something is missing in docker container

I managed to fix it via npm rebuild

from compression-webpack-plugin.

Eightyplus avatar Eightyplus commented on August 15, 2024 1

You tell me, you created the loose dependency.

from compression-webpack-plugin.

Eightyplus avatar Eightyplus commented on August 15, 2024

I't works when install [email protected], please use specific version!

from compression-webpack-plugin.

michael-ciniawsky avatar michael-ciniawsky commented on August 15, 2024

@Eightyplus Curious, why the version must be specific ? 😛

from compression-webpack-plugin.

michael-ciniawsky avatar michael-ciniawsky commented on August 15, 2024

kk I see now 😛 , I'm not the maintainer here, I will check why it is there in the first place and if it can be safetly removed, mom.

from compression-webpack-plugin.

Eightyplus avatar Eightyplus commented on August 15, 2024

We are struggeling with loose dependencies and migrating toward yarn to avoid this problem. But now and then it breaks because we haven't locked down all dependencies :)

from compression-webpack-plugin.

michael-ciniawsky avatar michael-ciniawsky commented on August 15, 2024

Setting it and the current range maybe also wrong :)

from compression-webpack-plugin.

Eightyplus avatar Eightyplus commented on August 15, 2024

I'm still trying to locate the exact problem, printing console.log(err) before the error is thrown I get the following. It could indicate problems with another dependency, I'll keep you updated.

Error: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /usr/src/app/node_modules/node-zopfli/lib/binding/node-v51-linux-x64/zopfli.node)
    at Object.Module._extensions..node (module.js:598:18)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/usr/src/app/node_modules/node-zopfli/lib/zopfli.js:7:14)
    at Module._compile (module.js:571:32)
    at Module._extensions..js (module.js:580:10)
    at Object.require.extensions.(anonymous function) [as .js] (/usr/src/app/node_modules/babel-register/lib/node.js:152:7)

from compression-webpack-plugin.

Eightyplus avatar Eightyplus commented on August 15, 2024

What version of node/npm is required?

from compression-webpack-plugin.

michael-ciniawsky avatar michael-ciniawsky commented on August 15, 2024

What version of node/npm is required?

@Eightyplus webpack 1 + plugin should be fine with node>= 0.12.x && npm >=2.x, webpack 2 requires node >= 4

/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /usr/src/app/node_modules/node-zopfli/lib/binding/node-v51-linux-x64/zopfli.node)

This is a node native modules (C/C++) issue in node-zopfli the glibc on your system may mismatch with the one required by node-zopfli. Why and if this an issue because of the node version in use etc., I'm no real help here, since C/C++ isn't my daily bread :D

from compression-webpack-plugin.

Eightyplus avatar Eightyplus commented on August 15, 2024

Hi, it turn out it is a build vs. runtime environment issue. Sorry about that.

from compression-webpack-plugin.

ykravv avatar ykravv commented on August 15, 2024

@Eightyplus Hey, I've got the same issue.

Error: Cannot find module '/usr/src/app/node_modules/node-zopfli/lib/binding/node-v51-linux-x64/zopfli.node'
    at Function.Module._resolveFilename (module.js:470:15)
    at Function.Module._load (module.js:418:25)

How did you solve this? Thanks

from compression-webpack-plugin.

Eightyplus avatar Eightyplus commented on August 15, 2024

Well, the build/runtime environment was different, so the packages has to be rebuild as suggested
rm -rf node_modules && npm install

from compression-webpack-plugin.

Eightyplus avatar Eightyplus commented on August 15, 2024

Maybe your production env is different from the other env's. I would check my webpack.config.js then.

from compression-webpack-plugin.

joshwiens avatar joshwiens commented on August 15, 2024

@Eightyplus - For reference, zopfli is being split out into it's own lib in the upcoming Major version of compression-webpack-plugin.

from compression-webpack-plugin.

Eightyplus avatar Eightyplus commented on August 15, 2024

@d3viant0ne thanks for letting me know!

from compression-webpack-plugin.

joshwiens avatar joshwiens commented on August 15, 2024

FYI the [email protected] release officially removes the loose dependency. More information can be found in the changelog.md

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