mbouclas / tinymce-vue-2

A vue 2 component for TinyMCE
49 stars 15 forks source link

Couldn't find preset "es2015" relative to directory ..... #3

Closed josephNg95 closed 7 years ago

josephNg95 commented 7 years ago

When i import your package: import TinyMCE from 'tinymce-vue-2' to main.js and add it to global component, i'm using Vue.component('tiny-mce', TinyMCE) but CI show me this error: Couldn't find preset "es2015" relative to directory .....

mbouclas commented 7 years ago

That's a webpack/babel issue, maybe missing babel-preset-es2015 babel-preset-stage-2

A typical config should be

{
    "presets": [
        ["es2015", { "modules": false }]
    ]
}

but that's always depending on your project