-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
React admin 3.0.0-beta.3 with IE11: ReferenceError: 'Proxy' is undefined #3881
Comments
Confirmed. We must document that IE11 support requires adding a polyfill, like https://github.com/GoogleChrome/proxy-polyfill |
I tried making it work with proxy-polyfill but did not have much luck, can step-by-step instructions can be added? thanks |
Sorry, I don't have an IE11 nearby. Does https://github.com/GoogleChrome/proxy-polyfill/pull/58/files help? |
I didn't manage to properly configure the example to compile for IE11, so we'll leave it to the community to help debug this one. I think the Google Proxy polyfill is the solution, but I don't know the right syntax (their doc is outdated) between import 'proxy-polyfill/proxy.min.js'; and const ProxyFactory = require('proxy-polyfill/proxy.min.js');
const PProxy = ProxyFactory(); |
I managed to run the demo on IE11 by including the following polyfills in examples/demo/src/index.js: import 'react-app-polyfill/ie11';
import 'react-app-polyfill/stable';
import 'proxy-polyfill'; PR #4007 adds these changes to the demo, feel free to change or close it. |
Fixed by #4007. |
I followed user guide to create a sample application (https://github.com/marmelab/react-admin/blob/next/docs/Tutorial.md). To enable IE support, I added the following statements into src\index.js:
import 'react-app-polyfill/ie11'
import 'react-app-polyfill/stable';
When accessing an application, I see menu and navbar rendering properly, however instead of data table, I see an error message "Something went wrong" with the following details (see screen print; source code is also attached). Is there a way to enable IE support in v3?
==================
ReferenceError: 'Proxy' is undefined
=================================
Attached source code
react-admin-app-3.zip
The text was updated successfully, but these errors were encountered: