Module build failed: Error: Couldn't find preset "latest" relative to directory
Opened this issue · 6 comments
mariojankovic commented
First of all, thanks for doing this! I was having high hopes until it failed to initialize. I am using the default webpack-simple build from vue-cli and importing the plugin the suggested way doesn't work.
Any ideas?
chenqingspring commented
Thanks for your feedback!
Can you please provide a demo repo about your code?
mbiemiller commented
Removing .babelrc file fixed this error for me
JamesWatton commented
Same issue, removing .babelrc doesn't fix it for me, but removing the [latest] section from the babelrc file did.
poorbug commented
npm install --save-dev babel-preset-latest
.babelrc:
"presets": [
"latest"
],
It works.
AnonymousArthur commented
babel-preset-latest is already deprecated, please fix this package by using babel-preset-env.
chenqingspring commented
@ultran Thanks for reminding this 👍