Skip to content

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

@kayazinc

Description

@kayazinc

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/
                }]
            }
        }
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions