Skip to content

Warning: Couldn't find preset "env" relative to directory #91

@essteffan

Description

@essteffan

Hi Guys
I need to use babel in one project and I've installed and i get this error when running grunt (edited)
Warning: Couldn't find preset "env" relative to directory "/Users/essteffan/Sites/div//live..ro/web" Use --force to continue.

I'm using Grunt

and i have a concat before babel and after i have an uglify

My babel config is:

babel: {
options: {
sourceMap: true,
presets: ['@babel/preset-env']
},
dist: {
files: {
'../js/app.min.js': '../js/app.js'
}
}
},

If i comment this line i have no errors: '../js/app.min.js': '../js/app.js'
Somehow i thing around there is the problem.

Could you please advice how to make it work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions