Teamwork / node-auto-launch

Launch applications or executables at login (Mac, Windows, and Linux)
MIT License
939 stars 111 forks source link

Error with Electron-Webpack 4.28.4 #94

Open dbhagen opened 5 years ago

dbhagen commented 5 years ago

Clone project: //create a directory of your choice, and copy template using curl mkdir new-electron-webpack-project && cd new-electron-webpack-project curl -fsSL https://github.com/electron-userland/electron-webpack-quick-start/archive/master.tar.gz | tar -xz --strip-components 1 //install dependencies yarn

Install module: yarn add auto-launch

Add the following code to ./src/main/index.js: import { autoLaunch } from 'auto-launch' // Global Auto Launch references var appAutoLaunch = new autoLaunch({ name: 'Hello World App', isHidden: true })

dbhagen commented 5 years ago

Just, just a curious note and workaround... Swapping import { AutoLaunch } from 'auto-launch' with var AutoLaunch = require('auto-launch') fixes it. Up to you if you want to keep this issue open. At least I can work around it.

adam-lynch commented 5 years ago

Please see that we're looking for contributors / maintainers: #64.

I'm happy to give access to people who are willing to help improve things, merge pull-requests, close issues, etc.