A
A
Artem Mikhnevich2020-05-26 21:30:18
Electronic commerce
Artem Mikhnevich, 2020-05-26 21:30:18

How to run Vue + vueStoreFront on IE11?

Project on Vue + VueStorefront (package manager Yarn + VUETIFY) , in the latest versions of the browser, of course, everything is ok.
In IE11, styles, events, and nothing work at all.
I'm thinking in the direction of certain polyfills, or adding babel settings, tell me which way to look ?
PS I didn't have to set up Babel before, so please More gentle ))
Babel is included in the configs. (But the duplication of @babel/core and babel-core confuses )
5ecd5ed9d03e8571609587.png
and there is even some kind of default setting from VueStoreFront.
5ecd5ecc6b298879673295.png

And also in IE11, an error pops up with a link to the proxy pollyfil. But here I'm not undestined at all.

5ecd61c80a83a487629581.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aetae, 2020-05-26
@timartinov

Throw a file with the .browserslistrcfollowing content into the root of the project:

> 1%
last 2 versions
ie11

And in the settings, '@babel/preset-env'add:
useBuiltIns: 'usage'
Then babel will itself connect the necessary polyfills for the declared browsers. If it is, of course, in principle, properly connected and working.
Specifically, at the zoo, either you have - no, it shouldn’t be like that, but it happens. If it works, you can basically kill it, but if you have time, it's better to start a clean project from a fresh starting preset and transfer the code to it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question