fluffgfx / jolteon Goto Github PK
View Code? Open in Web Editor NEW:bulb: Babel + Electron + React + Browserify + SASS application stack. Electron Made Easy :tm:
License: MIT License
:bulb: Babel + Electron + React + Browserify + SASS application stack. Electron Made Easy :tm:
License: MIT License
I get this error after a fresh clone :/
/Users/willb/repos/jolteon/gulpfile.js:16
const gulp = require('gulp')
^^^^^
SyntaxError: Use of const in strict mode.
at exports.runInThisContext (vm.js:73:16)
at Module._compile (module.js:443:25)
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 execute (/usr/local/lib/node_modules/gulp-cli/lib/versioned/^3.7.0/index.js:24:18)
at Liftoff.handleArguments (/usr/local/lib/node_modules/gulp-cli/index.js:150:63)
at Liftoff.<anonymous> (/usr/local/lib/node_modules/gulp-cli/node_modules/liftoff/index.js:192:16)
Hey,
I'm trying to use some module like nodegit or fs-extra in the client process, so I installed them npm install --save <module>
and use them like so const something = require('modulename')
.
If I run the app via gulp serve
everything works fine. But when I package it via gulp package-osx
and double click the app, it always fails with Cannot find module <module_name>
error. However, if I go inside the packaged app to appname.app/Contents/Resources/app
directory, and run electron .
from command line, everything works fine.
Any idea?
Sample app here
Versions: Node 5.1.1, Electron 0.36.12. I tried Node 6 and Electron 1, but also failed.
โ electron-v0.36.8-darwin-x64.zip [--------------------] 1%events.js:141
throw er; // Unhandled 'error' event
^
Error: socket hang up
at createHangUpError (_http_client.js:203:15)
at TLSSocket.socketOnEnd (_http_client.js:288:23)
at emitNone (events.js:72:20)
at TLSSocket.emit (events.js:166:7)
at endReadableNT (_stream_readable.js:903:12)
at doNTCallback2 (node.js:439:9)
at process._tickCallback (node.js:353:17)
[13:16:24] Starting 'package-windows'...
[13:16:24] Starting 'package-osx'...
[13:16:24] Starting 'package-linux'...
events.js:141
throw er; // Unhandled 'error' event
^
Error: connect ETIMEDOUT 54.231.14.121:443
at Object.exports._errnoException (util.js:874:11)
at exports._exceptionWithHostPort (util.js:897:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1063:14)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.