简体   繁体   中英

In IE browser, React.Js JavaScript code works fine only after opening developer tools

In IE, React.js javascript is not working in thin client but its working in localhost. why?

I am working on React.Js JavaScript code. In other browsers its working fine. But in IE browser, Its not working. But when we open developer tools, then its getting updated.

I tried to update values in IE. It didn't work. But after opening developer tools, It's getting updated.

Please help me out.

This commonly happens because console isn't available in older versions of IE unless the dev tools are open - the development build of React has lots of console logging with helpful warnings and errors.

You can use something like https://github.com/paulmillr/console-polyfill to make sure your apps won't die when console logging is present.

See also answers to 'console' is undefined error for Internet Explorer .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM