Skip to content
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

reactProdInvariant.js:31 Uncaught Error: Minified React error #130; #1885

Closed
testingjune opened this issue Aug 23, 2017 · 1 comment
Closed

Comments

@testingjune
Copy link

I am learning react-native programming I have an error
I am not sure why this is

reactProdInvariant.js:31 Uncaught Error: Minified React error #130; visit http://facebook.github.io/react/docs/error-decoder.html?invariant=130&args[]=undefined&args[]=%20Check%20the%20render%20method%20of%20%60t%60. for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
at r (reactProdInvariant.js:31)
at o (instantiateReactComponent.js:74)
at r (ReactChildReconciler.js:44)
at i (traverseAllChildren.js:77)
at o (traverseAllChildren.js:172)
at Object.instantiateChildren (ReactChildReconciler.js:74)
at b._reconcilerInstantiateChildren (ReactMultiChild.js:191)
at b.mountChildren (ReactMultiChild.js:224)
at b._createInitialChildren (ReactDOMComponent.js:703)
at b.mountComponent (ReactDOMComponent.js:522)

My package json looks like
"devDependencies": {
"babel-core": "6.25.0",
"babel-eslint": "^7.2.3",
"babel-loader": "^7.1.1",
"babel-plugin-react-remove-prop-types": "^3.0.0",
"babel-polyfill": "^6.3.14",
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.24.1",
"babel-preset-stage-0": "^6.24.1",
"bower-webpack-plugin": "^0.1.9",
and .bablrc

{
"presets": [
"es2015",
"stage-0",
"react"
]
}

webpack looks like

const path = require('path');
module.exports = {
entry: {
main: "./src/index.js"
},
output: {
path: path.resolve(__dirname, 'dist/assets'),
filename: 'app.js'
},
devtool: 'source-map',
module: {
rules: [
{
test: /.(js|jsx)$/,
loader: 'babel-loader'
},
{
test: /.scss$/,
use: [{
loader: "style-loader"
}, {
loader: "css-loader"
}, {
loader: "resolve-url-loader"
}, {
loader: "sass-loader"
}]
}]
}
};

react render
render() {
return (
<Form.Input className="input"
{...this.props}
onClick={this.handleClick}/>
);
}

Index.html

<!doctype html>

<title>Application</title> <script type="text/javascript"> var firstPathPart = document.location.pathname.split("/")[1]; if (firstPathPart !== '') { var href; href = '/' + firstPathPart + '/'; document.write(""); // output /dist/ } </script> <style> #loader { position: absolute; top: 50%; left: 50%; margin: 0px; text-align: center; z-index: 1000; -webkit-transform: translateX(-50%) translateY(-50%); transform: translateX(-50%) translateY(-50%); padding-top: 100px; }
#loader:before {
  position: absolute;
  content: '';
  top: 0%;
  left: 50%;
  border-radius: 500rem;
  border: 0.2em solid rgba(0, 0, 0, 0.1);
  width: 4.57142857rem;
  height: 4.57142857rem;
  margin: 0em 0em 0em -2.28571429rem;
}

#loader:after {
  position: absolute;
  content: '';
  top: 0%;
  left: 50%;
  -webkit-animation: loader 0.6s linear;
  animation: loader 0.6s linear;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  border-radius: 500rem;
  border-color: #767676 transparent transparent;
  border-style: solid;
  border-width: 0.2em;
  box-shadow: 0px 0px 0px 1px transparent;
  width: 4.57142857rem;
  height: 4.57142857rem;
  margin: 0em 0em 0em -2.28571429rem;
}

@-webkit-keyframes loader {
  from {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  to {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes loader {
  from {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  to {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
</style>
Loading Application
<script>__REACT_DEVTOOLS_GLOBAL_HOOK__ = parent.__REACT_DEVTOOLS_GLOBAL_HOOK__</script> <script type="text/javascript" src="assets/app.js"></script>

Please help me why this error is? and where I have to look

@benjaminhoffman
Copy link
Contributor

hi @testingjune is this issue resolved? Closing for now but feel free to re open if I am mistaken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants