decosoftware / deco-ide

The React Native IDE
https://www.decosoftware.com/
GNU Affero General Public License v3.0
5.84k stars 311 forks source link

I can't run it returns require is not defined and Electron is not defined #295

Open haelsisy opened 7 years ago

haelsisy commented 7 years ago

when i use cd ./web npm run watch

it returns

screen shot 2017-08-16 at 10 49 10 am

(index):35 Uncaught ReferenceError: require is not defined at (index):35 (anonymous) @ (index):35 only-dev-server.js?2f87:74 [HMR] Waiting for update signal from WDS... Request.js?cf5c:18 Uncaught ReferenceError: Electron is not defined at Object.eval (eval at (bundle.js:4639), :25:19) at Object.eval (eval at (bundle.js:4639), :73:27) at eval (eval at (bundle.js:4639), :74:30) at Object. (bundle.js:4639) at webpack_require (bundle.js:556) at fn (bundle.js:87) at Object.eval (eval at (bundle.js:4633), :37:19) at Object.eval (eval at (bundle.js:4633), :204:27) at eval (eval at (bundle.js:4633), :205:30) at Object. (bundle.js:4633) (anonymous) @ Request.js?cf5c:18 (anonymous) @ Request.js?cf5c:61 (anonymous) @ Request.js?cf5c:61 (anonymous) @ bundle.js:4639 webpack_require @ bundle.js:556 fn @ bundle.js:87 (anonymous) @ fileActions.js?0325:18 (anonymous) @ fileActions.js?0325:157 (anonymous) @ fileActions.js?0325:157 (anonymous) @ bundle.js:4633 webpack_require @ bundle.js:556 fn @ bundle.js:87 (anonymous) @ fileReducer.js?1df5:28 (anonymous) @ fileReducer.js?1df5:85 (anonymous) @ fileReducer.js?1df5:85 (anonymous) @ bundle.js:4627 webpack_require @ bundle.js:556 fn @ bundle.js:87 (anonymous) @ index.js?82c7:20 (anonymous) @ index.js?82c7:49 (anonymous) @ index.js?82c7:49 (anonymous) @ bundle.js:4621 webpack_require @ bundle.js:556 fn @ bundle.js:87 (anonymous) @ configureStore.prod.js?d7a6:25 (anonymous) @ configureStore.prod.js?d7a6:55 (anonymous) @ configureStore.prod.js?d7a6:55 (anonymous) @ bundle.js:4135 webpack_require @ bundle.js:556 fn @ bundle.js:87 (anonymous) @ configureStore.js?a708:21 (anonymous) @ configureStore.js?a708:23 (anonymous) @ configureStore.js?a708:23 (anonymous) @ bundle.js:4129 webpack_require @ bundle.js:556 fn @ bundle.js:87 (anonymous) @ index.jsx?56bd:38 (anonymous) @ index.jsx?56bd:49 (anonymous) @ index.jsx?56bd:49 (anonymous) @ bundle.js:1051 webpack_require @ bundle.js:556 fn @ bundle.js:87 (anonymous) @ bundle.js:588 __webpack_require__ @ bundle.js:556 (anonymous) @ bundle.js:579 (anonymous) @ bundle.js:582 client?8505:37 [WDS] Hot Module Replacement enabled. 2client?8505:37 [WDS] App updated. Recompiling... client?8505:37 [WDS] Nothing changed.

zolamadolo commented 5 years ago

Hi zumaawad Did you final get this to work?

Regards Zola