Closed kurisubrooks closed 9 years ago
This is a weird issue... If we skip ES6 support we will drop half the dependencies. Ill pull it in a in a few hours.
Now it throws:
Kurisus-MBP:src Kurisu$ node index.js
/Users/Kurisu/Code/eew/node_modules/zepto-browserify/zepto.js:5
document = window.document,
^
ReferenceError: window is not defined
at /Users/Kurisu/Code/eew/node_modules/zepto-browserify/zepto.js:5:16
at Object.<anonymous> (/Users/Kurisu/Code/eew/node_modules/zepto-browserify/zepto.js:882:3)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (/Users/Kurisu/Code/eew/src/index.js:8:9)
at Module._compile (module.js:460:26)
Oh, you are trying to make a CLI version.
You aren't launching it with electron which means it isnt in Chromium. Window, zepto, etc only work if there is a DOM (If it is part of a webpage).
I can attempt to separate the the CLI and GUI, so they are each in in their separate files, but don't copy code(GUI will require the CLI).
Yup, that way we'd be able to run it on Linux, without the need of a GUI. :smile:
Fixed with rewrite