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

Can't modify webpack configuration: .default is not a valid Plugin property #43

Open
aromot opened this issue Oct 9, 2018 · 0 comments

Comments

@aromot
Copy link

aromot commented Oct 9, 2018

Hi,

My conf is: Win7, node v8.12.0, yarn 1.9.2. Here's what I did :

git clone https://github.com/electron-userland/electron-webpack-quick-start.git my-app

I changed package.json, adding:

{

  "electronWebpack": {
    "renderer": {
      "webpackConfig": "webpack.renderer.additions.js"
    }
  }
}

My webpack.renderer.additions.js contains just nothing for the moment (to be sure the problem doesn't come from any third party lib, as you see I plan to use handlebars):

module.exports = {
    module: {
        rules: [
            // {
            //     test: /\.hbs$/,
            //     use: ['handlebars-loader']
            // }
        ]
    }
}

I cleaned the src/renderer/index.js => blank

and when I do yarn dev, I get :

ERROR in ./src/renderer/index.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: [BABEL] D:\...\my-app\src\renderer\index.js: .default is not a valid Plugin property

How can I fix the problem?
When I remove "electronWebpack..." from package.json, it works fine. It seems I can't modify the webpack conf...

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