Webpack4 configuration eslint-loader, packaging error, compilation failed! Error message: ERROR in. / src/index.js

  • error message

       

  • if Webpack 4 + eslint-loader is configured correctly and there is no error message on the terminal or console, can I share the relevant code?

try global installation of eslint


try the next roadhog@2.5.0-beta.1 on the server


Hello, has this problem been solved? I have the same problem


add this configuration item to the plugins of webpack

new webpack.LoaderOptionsPlugin(
    {
      minimize: true,
      debug: false,
      options: {
        context: __dirname
      }
    }
 )
Menu