polyfills

Angular 6.x not working in IE 11 - Error: Invalid argument

寵の児 提交于 2020-07-23 05:05:24
问题 I have an Angular 6.x app running perfectly in Chrome. The problem is when trying to run it in IE 11, I'm getting the error: Error: Invalid argument. at DefaultDomRenderer2.prototype.setProperty... Already tried all answers in StackOverflow that I could find with no help. I'm listing theme here so you guys won't try them as answers: Added all polyfills needed for IE but still having the same problem. Added in head tag: <meta http-equiv="X-UA-Compatible" content="IE=11"> Thank you for helping.

Angular 6.x not working in IE 11 - Error: Invalid argument

自古美人都是妖i 提交于 2020-07-23 05:05:07
问题 I have an Angular 6.x app running perfectly in Chrome. The problem is when trying to run it in IE 11, I'm getting the error: Error: Invalid argument. at DefaultDomRenderer2.prototype.setProperty... Already tried all answers in StackOverflow that I could find with no help. I'm listing theme here so you guys won't try them as answers: Added all polyfills needed for IE but still having the same problem. Added in head tag: <meta http-equiv="X-UA-Compatible" content="IE=11"> Thank you for helping.

Angular 6.x not working in IE 11 - Error: Invalid argument

自闭症网瘾萝莉.ら 提交于 2020-07-23 05:03:13
问题 I have an Angular 6.x app running perfectly in Chrome. The problem is when trying to run it in IE 11, I'm getting the error: Error: Invalid argument. at DefaultDomRenderer2.prototype.setProperty... Already tried all answers in StackOverflow that I could find with no help. I'm listing theme here so you guys won't try them as answers: Added all polyfills needed for IE but still having the same problem. Added in head tag: <meta http-equiv="X-UA-Compatible" content="IE=11"> Thank you for helping.

Gatsby - IntersectionObserver is not defined

故事扮演 提交于 2020-05-28 04:38:46
问题 I am trying to build my gatsby project but I am unable due to the IntersectionObserver not being recognised. I use the intersectionObserver inside an InView component: import React, { useRef, useState, useEffect } from 'react' const InView = ({ children }) => { const [boundingClientY, setBoundingClientY] = useState(null) const [direction, setDirection] = useState(null) const [element, setElement] = useState(null) const [inView, setInView] = useState(false) const observer = useRef(new

Map(iterable) alternative for IE 11

元气小坏坏 提交于 2020-05-27 12:41:05
问题 Unfortunately I have to support IE11. I create my map with this code (polyfill for .entries already used): const map = new Map(Object.entries(array)); but because of IE11 not supporting the iterable constructor the Map is empty. I couldn't find a polyfill or anything else for this. Does anyone have an easy way of fixing this? Afterwards I use the map like this: map.forEach((maps: ITopoInterface[], key: string) => { maps.findIndex((t: ITopoInterface) => { //do stuff }); }); 回答1: You say this

Getting Object doesn't support property or method 'entries' error even when I am adding polyfill

夙愿已清 提交于 2020-05-17 06:05:31
问题 I am trying to load my web application on IE11 with the following browserslist configuration in package.json "browserslist": { "production": [ ">0.2%", "not dead", "not op_mini all" ], "development": [ ">0.1%", "not dead", "not op_mini all" ] } and with the following statements at the beginning of src/index.tsx import 'react-app-polyfill/ie11'; import 'react-app-polyfill/stable'; But I get an error saying SCRIPT438: Object doesn't support property or method 'entries' . To overcome this I read

“react-app-polyfill” doesn't work in IE11

爱⌒轻易说出口 提交于 2020-05-09 07:45:10
问题 My React App is not working on IE 11. My client wants the app to work on at least ie11. So, i have to solve this error. I tried the official documentation from "react-app-polyfill". But it still doesn't work. Please help me. src/index.jsx import 'react-app-polyfill/ie11'; import 'react-app-polyfill/stable'; import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import * as serviceWorker from './serviceWorker'; import { Provider } from