Comments (5)
The error you reference is only thrown if the Component
you polyfill doesn't have an isReactComponent
property on its prototype. This property is set by React on Component
(and PureComponent
), and your component should inherit it so long as it extends one of those two classes.
Since you mention IE 10 specifically, it does not support JavaScript class syntax. This means that you'll need to use something like Babel to compile your code before running it.
If you are doing this and still seeing the error, we'll need more information bout how to reproduce the problem. (For example, you can provide a Code Sandbox that shows all of your code, or an example GitHub repo that could be checked out and run locally.
PS. Can you load this URL in IE 10 by chance?
https://build-bmxsryfowt.now.sh
from react-lifecycles-compat.
https://build-bmxsryfowt.now.sh isn't loading in ie 10, because you haven't polyfilled Set and Map.
https://reactjs.org/docs/javascript-environment-requirements.html
from react-lifecycles-compat.
I'm familiar with that requirement. 😄 The app I deployed to build-bmxsryfowt.now.sh used the polyfills mentioned on ReactJS.org specifically. I messed up though by putting them in App.js
rather than index.js
(after React has been initialized in other words). Try again:
https://build-billqnpauw.now.sh
from react-lifecycles-compat.
It works 😄
Must be something we done in our project. I'll investigate more.
from react-lifecycles-compat.
When you figure out the cause– let me know, if you think about it. It might be helpful in the future for someone else. 😄
from react-lifecycles-compat.
Related Issues (20)
- Doesn't demand `null` be returned HOT 5
- Add changelog HOT 2
- Template strings are not supported on old browsers HOT 1
- Use react-lifecycles-compat with hoc HOT 5
- Failed to compile with Create-react-app. HOT 2
- Perhaps fill that ellipsis in the README with a couple of methods. HOT 1
- Package is not published pre-compiled HOT 6
- StrictMode warnings HOT 2
- Failed to minify the code from this file: react-lifecycles-compat.es.js:64 HOT 8
- v1.1.4 suddenly not exporting module? HOT 1
- `getDerivedStateFromProps` not called before each `render` HOT 1
- object doesn't support property or method 'getDerivedStateFromProps'
- Is there intent to support componentDidCatch and getDerivedStateFromError? HOT 3
- support UNSAFE_componentWillUnmount HOT 4
- License not version-tagged
- Test case failure while building react-lifecycles-compat on PowerPC64LE - ppc64le
- 1.1.1 error __webpack_require___(...) is not a function HOT 10
- Use named export and add ES module to dist HOT 2
- getSnapshotBeforeUpdate polyfill incompatible with version 16.3 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-lifecycles-compat.