2016-07-22 74 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軟件包。