A
A
Alexander Savenko2018-08-02 00:16:32
Vue.js
Alexander Savenko, 2018-08-02 00:16:32

Vue Cli 3 and IE11 issue. How to decide?

Hello!
In the project we are using Vue cli 3.0.0-rc.10. with TypeScript 3, use classes. I need it to work in IE 11.
We use the sl-vue-tree plugin and when building-e I see that Vue does not convert arrow functions and I get an error.
I've tried:

// babel.config.js
process.env.VUE_CLI_BABEL_TRANSPILE_MODULES = true;

module.exports = {
    "presets": [
        [
            "@vue/app",
            {
                "useBuiltIns": "entry",
            }
        ]
    ]
}

and import '@babel/polyfill'; in enter file - NOT WORKING
Works only
// vue.config.js
module.exports = {
transpileDependencies:[
‘sl-vue-tree’,
]
};

Now in production (production mode) everything is fine, but I get an error in development (development mode)
"export 'default' (imported as 'SlVueTree') was not found in 'sl-vue-tree'
Why? How to solve the problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
maniiii, 2018-12-13
@maniiii

Most likely, they dropped ie.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question