2016-07-22 39 views
0

我想开发一个混合移动应用程序使用重新应用程序,但我卡在第一步。我安装了reapp并创建了一个新的应用程序。第一次运行后,它抛出了404 localhost:3011/main.js错误。所以我安装的依赖:重新应用默认的应用程序不工作

NPM安装--save [email protected]

NPM安装--save [email protected]

NPM安装--save [email protected] 0.15

NPM安装--save反应反应-DOM

NPM安装的WebPack

NPM安装的WebPack-DEV-服务器

NPM安装minimatch,所有

NPM安装--save反应路由器

这样做后,main.js错误得到解决。但现在它记录下列错误:

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

我该如何解决这个问题?

+0

你使用这个原因的任何理由,而不是原生? – erichardson30

回答

0

错误说你的应用程序有多个反应。

当您使用reapp套件时,它也会包含react和ui-ui软件包。