visma-meglerfront / sweet-modal-vue

The sweetest library to happen to modals.
Other
754 stars 86 forks source link

Module Build failed #29

Closed zexingguo closed 7 years ago

zexingguo commented 7 years ago

Module build failed: Error: Couldn't find preset "es2015" relative to directory.

When I important the component it shows me module bild failed, it cant find the . babelrc in sweet-modal-vue

edenleung commented 7 years ago

try to install babel-preset-es2015

smpl commented 7 years ago

i have same problem. i use vue-webpack-template for a project step to reproduce

vue-cli webpack
npm install sweet-modal-vue --save-dev
npm install babel-preset-es2015 --save

add import { SweetModal, SweetModalTab } from 'sweet-modal-vue' and i have problem with es2015

bluefirex commented 7 years ago

We'll be switching away from es2015 to env in the next release.

bluefirex commented 7 years ago

Fixed in c05fb535b10cb39d2bfa17c218d198471a1e37da, released in v2.0.0