hard-source-webpack-plugin icon indicating copy to clipboard operation
hard-source-webpack-plugin copied to clipboard

Dependency on jsonlint breaks electron-builder

Open rdev opened this issue 6 years ago • 0 comments

Expected Behavior

Electron app using Webpack builds successfully

Actual Behavior

Running electron-builder fails because of jsonlint dependency, which has a dependency on JSV which has broken "dependencies" field causing electron-builder to freak out and crash.

I understand that it's more of a jsonlint/JSV issue, but JSV hasn't been updated in 7 years and is seemingly abandoned, it's probably not a good idea to depend on it anyways

Is an error being thrown?

⨯ nodeModules.Dependency.Dependencies: ReadMapCB: expect { or n, but found [, error found in #10 byte of ...|ncies" : [],
        "main|..., bigger context ...|/garycourt/JSV.git"
                }
        ],
        "dependencies" : [],
        "main" : "lib/jsv.js",

Steps to Reproduce

  1. Create an Electron app that uses this Webpack plugin. In my case it's an app built with with Electron Next and Next.js 7 which uses this plugin.
  2. Try building it with electron-builder

rdev avatar Sep 26 '18 12:09 rdev