aredden / electron-G14Control

Electron desktop application replacement for G14ControlR3.
MIT License
208 stars 27 forks source link

Development Questions/Chat #9

Closed LavaTiger99 closed 3 years ago

LavaTiger99 commented 3 years ago

I've followed the development steps per the readme, but not able to get a running app yet. The first \electron window shows:

[nodemon] starting `tsc --project ./tsconfig.dev.json && electron . || exit 1`
src/electron.ts:33:24 - error TS2307: Cannot find module 'forcefocus' or its corresponding type declarations. 
33 import forceFocus from 'forcefocus';
~~~~~~~~~~~~ 
Found 1 error. 
[nodemon] app crashed - waiting for file changes before starting...    

Then the second root window asks if I want to start, then I allow changing port, then outputs this:

? Something is already running on port 3000.
Would you like to run the app on another port instead? Yes
i 「wds」: Project is running at http://172.18.16.1/
i 「wds」: webpack output is served from
i 「wds」: Content not from webpack is served from C:\dev\electron-G14Control\public
i 「wds」: 404s will fallback to /
Starting the development server...   
Failed to compile.                                                                                                                                                                                                                              ./src/index.scss (./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-5-1!./node_modules/postcss-loader/src??postcss!./node_modules/resolve-url-loader??ref--6-oneOf-5-3!./node_modules/sass-loader/dist/cjs.js??ref--6-oneOf-5-4!./src/index.scss) 
Error: ENOENT: no such file or directory, scandir 'C:\dev\electron-G14Control\node_modules\node-sass\vendor'     

Chrome tab displays same error: image

What am I doing wrong?

LavaTiger99 commented 3 years ago

Ok, figured out my problems, updated the documentation in PR #10