-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Create react app is not loaded (not working) in internet explorer 11 browser #7084
Comments
does it work on other browsers like Chrome? |
@vinod827 yes its working fine in chrome and firefox but internet explorer (IE11) have issue. |
What does your |
@miraage |
I am having the same issue. Create a new app with ‘npx create-react-app my-app –typescript’, It works fine in Edge and Chrome but will not start in Internet Explorer. The deprecated version ‘npx create-react-app my-app --scripts-version=react-scripts-ts’ works in Internet Explorer with no problems. |
@slgauravsharma your |
@ianschmitz it does not work from me. I create the app with ‘npx create-react-app my-app –typescript’, ‘npm install react-app-polyfill’ and add Internet Explorer to the browserslist option. It runs in Edge and Chrome but will not start in Internet Explorer. |
@pitric did you run yarn start/npm start or yarn build/npm run build? Did you add the ie11 polyfills? It doesn't sound like you did. Please include full details. |
After some experimentation, I found the minimum steps require to run in Internet Explorer.
No need to add any polyfills since according to the documentation: ‘The browserslist configuration controls the outputted JavaScript so that the emitted code will be compatible with the browsers specified.’ |
@pitric please read the page I linked above in it's entirety. You will need to polyfill for ie support as mentioned in those docs. The docs also call out the need to delete |
@ianschmitz thanks Ian you are right. You do need the polyfills for more advanced applications, but the basic one works without them. You can delete node-modules to delete the cache or as you point out you can also delete node_modules/.cache directly. |
@ianschmitz @bugzpodder @petetnt i tried many ways as mentions in documentation but not getting success lastly i found and add index.html in |
What's your index.js? did you add the polyfills there? |
@slgauravsharma I downloaded your repo and followed the following steps according to the documentation:
After all of this it still did not run in Internet Explorer, so I closed Visual Studio Code and re-opened it and it worked. |
i sovle it by @ianschmitz's solution:
|
Create react app is not loaded (not working) in internet explorer 11
Version:-
"react": "^16.8.6",
"react-app-polyfill": "^1.0.1",
"react-dom": "^16.8.6",
"react-redux": "^7.0.3",
"react-router-dom": "^5.0.0",
"react-scripts": "3.0.1",
"redux": "^4.0.1",
"redux-devtools-extension": "^2.13.8",
"redux-thunk": "^2.3.0"
setup is react-redux
i tried index.js in polyfill config also
import 'react-app-polyfill/ie11';
import 'react-app-polyfill/stable'; but its not working.
import rootReducer from "../reducers/index";
import thunk from "redux-thunk";
import { composeWithDevTools } from 'redux-devtools-extension';
import { createStore, applyMiddleware } from "redux";
import initialStoreState from "./initialStoreState";
const initialState = initialStoreState;
const middlewares = [];
if (process.env.NODE_ENV === 'development') {
middlewares.push(/* loggerMiddleware, */);
}
const configureStore = createStore(
rootReducer,
initialState,
composeWithDevTools(
applyMiddleware(...middlewares, thunk))
)
export default configureStore;
its working fine chrome and firefox browser.
#HELPPLEASE
The text was updated successfully, but these errors were encountered: