poush / H2

Supporting light weight extensions for heavy task lifting

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fails to start on Windows 10

msdeibel opened this issue · comments

System

Windows 10 1803
Node 5.4.1

Repro

git clone https://github.com/poush/h2
cd h2
npm install
npm start

Error message

App threw an error during load

C:\temp\h2\ServiceProviders\providers.js:1
(function (exports, require, module, __filename, __dirname, process, global, Buffer) { return function (exports, require, module, __filename, __dirname) { import {youtubeProvider} from './MediaProviders/youtube'
                                                                                                                                                           ^^^^^^

SyntaxError: Unexpected token import
    at createScript (vm.js:80:10)
    at Object.runInThisContext (vm.js:139:10)
    at Module._compile (module.js:606:28)
    at Object.Module._extensions..js (module.js:653:10)
    at Module.load (module.js:561:32)
    at tryModuleLoad (module.js:504:12)
    at Function.Module._load (module.js:496:3)
    at Module.require (module.js:586:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (C:\temp\h2\main.js:3:20)

Same error with NodeJS 10.11.0

Please try with npm install --dev

Now npm start works telling me to pass "any youtube url". Passing as only command line arg didn't work. Do I need an option flag or a certain URL type from Youtube?

Thanks for your efforts. If the electron app is running without errors. You just need to copy any youtube url and press ctrl+shift+v to run. It should start the video on the H2.

Just one request, can you please also check if the H2 app apps keep itself above all other apps even when they are running in full-screen mode?

OK, that works. I'll update the PR.

Also the allways-on-top works, even if everything is running in fullscreen mode.

The issue can be closed.

Thanks