Skip to content

Commit d33a4ee

Browse files
authored
Merge pull request #6542 from marmelab/fix-demo-ie11
Fix demo does not work with ie11
2 parents 82e8da9 + ed20f5d commit d33a4ee

File tree

3 files changed

+1258
-32
lines changed

3 files changed

+1258
-32
lines changed

examples/demo/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121
"ra-language-french": "^3.9.0",
2222
"react": "^17.0.0",
2323
"react-admin": "^3.9.0",
24-
"react-app-polyfill": "^1.0.4",
24+
"react-app-polyfill": "^2.0.0",
2525
"react-dom": "^17.0.0",
2626
"react-redux": "^7.1.0",
2727
"react-router": "^5.1.0",
2828
"react-router-dom": "^5.1.0",
29-
"react-scripts": "^4.0.1",
29+
"react-scripts": "^4.0.3",
3030
"recharts": "^1.8.5",
3131
"redux-saga": "^1.0.0"
3232
},

examples/demo/src/index.tsx

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1+
/** @jsxRuntime classic */
12
import 'react-app-polyfill/ie11';
23
import 'react-app-polyfill/stable';
34
import 'proxy-polyfill';
5+
// IE11 needs "jsxRuntime classic" for this initial file which means that "React" needs to be in scope
6+
// https://github.com/facebook/create-react-app/issues/9906
7+
48
import * as React from 'react';
59
import ReactDOM from 'react-dom';
610

0 commit comments

Comments
 (0)