Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IE bug #75

Closed
nPaul opened this issue Aug 7, 2018 · 11 comments
Closed

IE bug #75

nPaul opened this issue Aug 7, 2018 · 11 comments
Assignees
Labels

Comments

@nPaul
Copy link

nPaul commented Aug 7, 2018

IE 10, 11 bug

i got error:

SCRIPT5020: Expected ')' in regular expression

on code:



/**
 * A representation of any set of values over any amount of time. This is the most basic building block
 * of RxJS.
 *
 * @class Observable<T>
 */
var Observable = /*@__PURE__*/ (/*@__PURE__*/ function () {

why babel insert PURE i don't know
it work fine on Chrome browser

How to fix it in IE
I also use babel-polyfill and i try use babel-preset-env with param useBuildins = true
not helps

@ChristianBielak
Copy link

Hi,

i had many IE problems too. Here you see how we fixed them. #71

@ghettovoice
Copy link
Owner

Hi @nPaul ,
try to add target browsers to the babel config https://babeljs.io/docs/en/next/babel-preset-env.html#targetsbrowsers

@nPaul
Copy link
Author

nPaul commented Aug 7, 2018

with params useBuiltIns: true vualayers not work in IE 10,11.
only with import 'babel-polyfill' and off params useBuildIns: false, but need restart IE after change useBuildIns.

My project has many packs *.js files, and i can import babel-polyfill only one in pack file.
I want use "useBuilltIns: true" for globally use babel-polyfill for all js packs in my project.

example my project has packs:
application.js for all global vue components.
and map.js with map.vue component for page "mysite.com/map"
and other

@ghettovoice
Copy link
Owner

Are you using @rails/webpacker? If so take a look at your old issue #31, my last comment.

@nPaul
Copy link
Author

nPaul commented Aug 9, 2018

Its not help
because i got this error on development mode. I think uglify not run on development mode.

@ghettovoice
Copy link
Owner

ghettovoice commented Aug 9, 2018

Ok, I got.
Can you provide link to your project, or maybe some test project with the same configuration?
It would be help, such error most likely related to your environment or project configuration.

@ghettovoice
Copy link
Owner

And one more: the uglified build for production made only by webpack, is it work?

@ghettovoice
Copy link
Owner

should be resolved in upcoming v0.11.0

@ghettovoice
Copy link
Owner

Please try v0.11.0-rc.1 that is based on OpenLayers 5

npm install vuelayers@next

@ghettovoice
Copy link
Owner

v0.10.18 also should resolve all IE issues

npm i vuelayers@latest

@ghettovoice
Copy link
Owner

fixed in the latest versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants