I am trying to develop a hybrid mobile app using Reapp but I'm stuck at the first step. I installed reapp and created a new app. After running it for the first time it threw a 404 localhost:3011/main.js error. So I installed the dependencies:
npm install --save [email protected]
npm install --save [email protected]
npm install --save [email protected]
npm install --save react react-dom
npm install webpack
npm install webpack-dev-server
npm install minimatch-all
npm install --save react-router
After doing this, the main.js error was resolved. But now it's logging the following error:
warning.js:45 Warning: Constructor(...): React component classes must extend React.Component. Uncaught Invariant Violation: Constructor.render(): A valid ReactComponent must be returned. You may have returned undefined, an array or some other invalid object.
./app/app.js Critical dependencies: 7:22-29 require function is used in a way in which dependencies cannot be statically extracted @ ./app/app.js 7:22-29
How do I fix this?