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

Failed to load on linux #42

Closed
jhessin opened this issue Feb 26, 2018 · 1 comment
Closed

Failed to load on linux #42

jhessin opened this issue Feb 26, 2018 · 1 comment

Comments

@jhessin
Copy link

jhessin commented Feb 26, 2018

I am having an issue only on my Linux machine (my other machine is a mac). When attempting to but when attempting to build the application on my Linux machine I get this error:

ERROR in ./node_modules/semantic-ui-css/themes/default/assets/images/flags.png
Module build failed: Error: /home/jhessin/websites/database/node_modules/pngquant-bin/vendor/pngquant: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory

    at Promise.all.then.arr (/home/jhessin/websites/database/node_modules/execa/index.js:231:11)
    at process._tickCallback (internal/process/next_tick.js:109:7)

 @ ./node_modules/css-loader!./node_modules/sass-loader/lib/loader.js!./node_modules/semantic-ui-css/semantic.min.css 7:116229-116280
 @ ./node_modules/semantic-ui-css/semantic.min.css
 @ ./src/index.coffee

Here is my webpack.config.coffee modules and resolve settings:

module: rules: [
    {
      test: /\.(gif|png|jpe?g|svg)$/i
      use: [
        'file-loader'
        loader: 'image-webpack-loader'
        options:
          bypassOnDebug: true
      ]
    }
    {
      test: /\.(sass|scss|css)$/
      use:[
        { loader: 'style-loader' }
        { loader: 'css-loader' }
        { loader: 'sass-loader' }
      ]
    }
    {
      test: /\.(woff|woff2|eot|ttf|otf)$/,
      loader: 'file-loader'
    }
    {
      test: /\.(coffee|cson)$/
      use:[
        loader: 'coffee-loader'
        options:
          transpile:
            presets: ['env']
      ]
    }
  ]
  resolve:
    extensions: [
      '.js', '.json'
      '.coffee', '.cson', '.sass', '.scss'
    ]

yarn: v1.3.2
webpack: v3.11.0
node: v9.5.0
npm: 5.6.0

@jhessin
Copy link
Author

jhessin commented Feb 26, 2018

I found a workaround here:

wget -q -O /tmp/libpng12.deb http://mirrors.kernel.org/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1_amd64.deb \
  && sudo dpkg -i /tmp/libpng12.deb \
  && rm /tmp/libpng12.deb

@jhessin jhessin closed this as completed Feb 26, 2018
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

1 participant