iam4x / pokemongo-webspoof

👾 Play Pokémon Go from your Mac
2.14k stars 228 forks source link

Run Dev not functional #412

Closed eq2kazial closed 7 years ago

eq2kazial commented 7 years ago

@iam4x Updated to latest Dev build tonight and the Electron console doesn't work. This error appears in terminal:

Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.

MoOx commented 7 years ago

Related to this https://github.com/webpack/webpack/issues/3018. For postcss the solution is to move the configuration to a plugin

    plugins: [
      // You should be able to remove the block below when the following
      // issue has been correctly handled (and postcss-loader supports
      // "plugins" option directly in "query")
      // https://github.com/postcss/postcss-loader/issues/99
      new webpack.LoaderOptionsPlugin({
        test: /\.css$/,
        options: {
          postcss: previousPostCSSPluginsFunction,
          // required to avoid issues with other loader (eg: css-loader?modules)
          // this is normally the default value, but when we use
          // LoaderOptionsPlugin, we must specify it again, otherwise,
          // context is missing (and css modules names can be broken)!
          context: __dirname,
        },
      }),
tselincoln commented 7 years ago

where should I place the plug in? which file?

MoOx commented 7 years ago

See #413 for the fix ;)