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

Error: Each element of the loaders list must be an object or array #1

Open
kayazinc opened this issue Jul 11, 2016 · 1 comment
Open

Comments

@kayazinc
Copy link

kayazinc commented Jul 11, 2016

I got this error message while trying to incorporate webpack-profile.

any idea what i am missing? Thanks. Below are my config:

dev: {
        vars: {
            //section with variables passed to webpack.DefinePlugin
        },
        config: {
            devtool: 'inline-source-map',
            plugins: [
                new webpack.optimize.OccurenceOrderPlugin(),
                new webpack.HotModuleReplacementPlugin(),
                new webpack.NoErrorsPlugin(),
            ],
            module: {
                loaders: [{
                    test: /\.jsx?$/,
                    loaders: [
                        'react-hot',
                        'babel?presets[]=es2015,presets[]=react',
                    ],
                    exclude: /(node_modules|bower_components)/
                },
                {
                    test: /\.css?$/,
                    loader: 'style!css',
                    exclude: /node_modules/
                }]
            }
        }
    }
@paolommj
Copy link

you need an empty array in default 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

2 participants