Git Product home page Git Product logo

create-choo-electron's People

Contributors

goto-bus-stop avatar lejeunerenard avatar simonwjackson avatar yoshuawuyts avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

create-choo-electron's Issues

Package.json needs release scripts

One of the hardest parts of creating electron apps is the package and release workflow. In many (not all) cases, this is a lot of boilerplate with electron and related modules.

create-choo-electron should have an opinionated release script. When you run npm run release, you should be able to open the empty application from the packaged app.

bankai v9.x.x issues

Placeholder: I'm having a few issues installing a new electron app with the release candidate of v9. Once v9 of bankai reaches greater stability I suggest a review of the choo-electron app creation process. Specifically how to handle some of the chrome security https and http2 issues that I have found popping up.

Can't render

Right after creating a fresh electron app, running npm start result in this, a blank app with two errors. Any idea why? I've not much experience with electron...

image

Error on startup on Linux

OS: Pop!_OS 18.10 (Ubuntu 18.10)
Node: v10.14.2

$ npm start 

> [email protected] start /home/aral/ind.ie/hypha/spikes/choo-electron
> cross-env NODE_ENV=development electron main.js

App threw an error during load
TypeError: app.makeSingleInstance is not a function
    at Object.<anonymous> (/home/aral/ind.ie/hypha/spikes/choo-electron/main.js:21:22)
    at Object.<anonymous> (/home/aral/ind.ie/hypha/spikes/choo-electron/main.js:66:3)
    at Module._compile (internal/modules/cjs/loader.js:693:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:704:10)
    at Module.load (internal/modules/cjs/loader.js:602:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:541:12)
    at Function.Module._load (internal/modules/cjs/loader.js:533:3)
    at loadApplicationPackage (/home/aral/ind.ie/hypha/spikes/choo-electron/node_modules/electron/dist/resources/default_app.asar/main.js:119:12)
    at Object.<anonymous> (/home/aral/ind.ie/hypha/spikes/choo-electron/node_modules/electron/dist/resources/default_app.asar/main.js:164:5)
    at Object.<anonymous> (/home/aral/ind.ie/hypha/spikes/choo-electron/node_modules/electron/dist/resources/default_app.asar/main.js:204:3)
A JavaScript error occurred in the main process
Uncaught Exception:
TypeError: app.makeSingleInstance is not a function
    at Object.<anonymous> (/home/aral/ind.ie/hypha/spikes/choo-electron/main.js:21:22)
    at Object.<anonymous> (/home/aral/ind.ie/hypha/spikes/choo-electron/main.js:66:3)
    at Module._compile (internal/modules/cjs/loader.js:693:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:704:10)
    at Module.load (internal/modules/cjs/loader.js:602:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:541:12)
    at Function.Module._load (internal/modules/cjs/loader.js:533:3)
    at loadApplicationPackage (/home/aral/ind.ie/hypha/spikes/choo-electron/node_modules/electron/dist/resources/default_app.asar/main.js:119:12)
    at Object.<anonymous> (/home/aral/ind.ie/hypha/spikes/choo-electron/node_modules/electron/dist/resources/default_app.asar/main.js:164:5)
    at Object.<anonymous> (/home/aral/ind.ie/hypha/spikes/choo-electron/node_modules/electron/dist/resources/default_app.asar/main.js:204:3)

Application only working when bankai is serving

Hello!
I really like choo and think this project is a great idea and opportunity to make my first contact with electron. ๐Ÿ˜„

I ran the generator with npx, as suggested, and then ran npm run build inside the generated folder. After opening the generated application inside dist, it only showed up a blank window.

I read the codebase to try to figure out what was happening and the findings/fixes resulted in this PR.

Now if I run npm run dev I can see the "Choo choo!" text, but if I open the generated app I can only see a blank page (unless I am serving the page with npm run dev). Is that expected?

I'm running on node v6.11.2 and osx 10.12.4.

Renderer doesn't work with core node/electron modules

I'm new to bankai/choo so apologies if I missed something obivous.

When I try to do something like require("fs") then it fails. I can work around it with window.require("fs"), is this the recommended way of doing it or is there a better way?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.