Linked to from http://lukecod.es/2016/03/14/react-invariant-violation-minified-exception-ios8-webpack-babel/
React throws an invariant violation when using the core-js
shim and the react-inline-elements
transform on iOS 8.
To reproduce:
npm install
npm start
Then go to http://localhost:8080 in the iOS Simuator (8.4) and you'll see just a blank screen. If you open the Safari devtools to debug it you'll see something like this:
To fix:
Either one of these fixes the issue:
- Remove the
core-js/shim
import fromapp.js
- Remove the
transform-react-inline-elements
from plugins in the.babelrc
It is probably better to do the latter, since the transform is only for performance improvements, but the core-js/shim
has functionality that your app probably needs.
You'd need to include
babel-polyfill
as an entry point as per the note