Skip to content
This repository has been archived by the owner on May 11, 2018. It is now read-only.

Error: Options passed to a preset which does not accept options #331

Closed
sjmaceyful opened this issue May 22, 2017 · 1 comment
Closed

Error: Options passed to a preset which does not accept options #331

sjmaceyful opened this issue May 22, 2017 · 1 comment

Comments

@sjmaceyful
Copy link

Since v1.5.0 trying I'm getting this error:

Error: Options {"targets":{"browsers":["last 2 versions","not ie <= 10","last 2 android versions"]}} passed to a preset which does not accept options. while parsing file: /assets/scripts/views/global.js

Reverting back to 1.4.0 fixes the issue. I'm using this with grunt-browserify, config is:

transform: [
    ['babelify', {
        'presets': [
            ['babel-preset-env', {
                'targets': {
                    'browsers': ['last 2 versions', 'not ie <= 10', 'last 2 android versions']
                }
            }]
        ]
    }]
]               
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants