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

Not working in IE11 [SOLVED] #245

Closed
rajeshkannanv opened this issue Aug 7, 2020 · 5 comments
Closed

Not working in IE11 [SOLVED] #245

rajeshkannanv opened this issue Aug 7, 2020 · 5 comments

Comments

@rajeshkannanv
Copy link

rajeshkannanv commented Aug 7, 2020

Description
We have a project using routify. we have added compiler(babel+core-js) to support legacy browsers. but still it is not working in IE11. If i remove routify and run a svelte app, it is working IE11.
Sample project : https://github.com/rajeshkannanv/routify-webpack-example

Logs
SCRIPT5009: 'Proxy' is undefined

Which comes from here:

File: runtime/helpers.js

var metatags = new Proxy(_metatags, { set: function set(target, name, value, receiver) { var props = target.props, getOrigin = target.getOrigin; if (Reflect.has(target, name)) Reflect.set(target, name, value, receiver);else { props[name] = props[name] || {}; props[name][getOrigin()] = value; } if (window['routify'].appLoaded) target.batchedUpdate(); return true; } });

How to reproduce

I have created sample project with routify+webpack+babel.
https://github.com/rajeshkannanv/routify-webpack-example

Does routify support in IE11?
Do we have any work around for this issue?

@jakobrosenberg
Copy link
Member

You will need a compiler like Babel for legacy browsers.

https://github.com/rollup/plugins/tree/master/packages/babel

@rajeshkannanv
Copy link
Author

@jakobrosenberg Thanks for your quick response, we are using webpack with babel, still it is not working. I have updated the issue details with sample project. where this issue can be reproduce able.

@jakobrosenberg
Copy link
Member

I'm all thumbs when it comes to Webpack. 😳

Is this of any use?
sveltejs/svelte#3388

@rajeshkannanv
Copy link
Author

By adding proxy-polyfill for IE11. I have solved the issue.

@jakobrosenberg
Copy link
Member

Thanks @rajeshkannanv

I hope this can save others some time in the future.

@jakobrosenberg jakobrosenberg changed the title Not working in IE11 Not working in IE11 [SOLVED] Aug 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants