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

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

Open
haelsisy opened this issue Aug 16, 2017 · 1 comment

Comments

@haelsisy
Copy link

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
Copy link

Hi zumaawad
Did you final get this to work?

Regards
Zola

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