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: Couldn't find preset "latest" relative to directory #8

Closed
vollyimnetz opened this issue May 11, 2018 · 2 comments
Closed

Error: Couldn't find preset "latest" relative to directory #8

vollyimnetz opened this issue May 11, 2018 · 2 comments

Comments

@vollyimnetz
Copy link

Hi,
i use webpack 4 with babel and the following setting:

{
    "presets": [
        [
            "env",
            {
                "modules": false,
                "targets": {
                    "browsers": [
                        "> 1%",
                        "last 2 versions",
                        "not ie <= 10"
                    ]
                }
            }
        ]
    ],
    "plugins": [
        "transform-object-rest-spread"
    ]
}

As soon i try to import "vue-c3" or "node_modules/vue-c3/dist/index.js" i get the error
"Couldn't find preset "latest" relative to directory [... the directory of vue-c3 ...]".
How can i fix that? Should this be fixed in your project?

@vollyimnetz
Copy link
Author

Ah, ok after installing babel-preset-latest it worked.
npm install --save-dev babel-preset-latest

But as i learned babel-preset-latest is deprecated (use preset-env)
https://babeljs.io/docs/plugins/preset-latest/

@biering
Copy link
Owner

biering commented May 12, 2018

I've updated all dependencies of the project including the babel preset env. I hope that helped.

@biering biering closed this as completed May 19, 2018
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