todbot / Blink1Control2

Blink1Control GUI to control blink(1) USB RGB LED devices.
http://blink1.thingm.com/
Apache License 2.0
154 stars 26 forks source link

Problem encountered installing and running #146

Open bipinmehta opened 3 years ago

bipinmehta commented 3 years ago

Sir, I downloaded the zip of the repository and expanded the zip file. I opened the project in VSCode. As per the README.md I executed following steps:

  1. npm install It installed with two problems: A. react-bootstrap-switch@3.4.6 requires a peer of react@0.14 || ^15.0.0 I installed react^15.0.0

    B. Output of problem { "resource": "/Users/bipin289/Desktop/Working-Dir/nodejs-usb-projects/Blink1Control2-2.2.4/package.json", "owner": "_generated_diagnostic_collectionname#3", "severity": 4, "message": "String does not match the pattern of \"^(?:@[a-z0-9-~][a-z0-9-.~]*/)?[a-z0-9-~][a-z0-9-.~]*$\".", "startLineNumber": 2, "startColumn": 11, "endLineNumber": 2, "endColumn": 27 }

Screenshot 2020-09-11 at 2 19 09 AM

Next I opened second integrated terminal and run: npm run watch & Result -> compiled successfully

Then from first terminal I ran the command: npm run startdev Result -> output is as shown in the attached screenshot. It is blank electron browser and therefore the source in inspect output is minimal.

My question is: Is this the output we should get on running the app?

Awaiting guidance. Regards

todbot commented 3 years ago

No that is not what you should see. You are running improper version of React.

npm install will install all dependencies required. I am unclear why you are getting that error. Please install from a git checkout not a zip.

To see Electron runtime errors, click on the Console tab in the Developer Tools window.

bipinmehta commented 3 years ago

Sir, Thank you for the response. I reproduce below the output on console of Developer's tools:

[HMR] Waiting for update signal from WDS... react-dom.development.js:24994 Download the React DevTools for a better development experience: https://fb.me/react-devtools You might need to use a local HTTP server (instead of file://): https://fb.me/react-devtools-faq configuration.js:29 Blink1Control2: config file:/Users/bipin289/Library/Application configuration.js:29 Support/Blink1Control2/blink1control2-config.json

Uncaught TypeError: React.createClass is not a function virtualBlink1.js:21 at eval (virtualBlink1.js:21) at Object../components/gui/virtualBlink1.js (bundle.js:4911) at webpack_require (bundle.js:790) at fn (bundle.js:101) at eval (blink1Status.js:21) at Object../components/gui/blink1Status.js (bundle.js:4732) at webpack_require (bundle.js:790) at fn (bundle.js:101) at eval (blink1ControlView.js:14) at Object../components/gui/blink1ControlView.js (bundle.js:4708)

security-warnings.ts:181 Electron Security Warning (Insecure Content-Security-Policy) This renderer process has either no Content Security Policy set or a policy with "unsafe-eval" enabled. This exposes users of this app to unnecessary security risks.

For more information and help, consult https://electronjs.org/docs/tutorial/security. This warning will not show up once the app is packaged. (anonymous) @ security-warnings.ts:181 client:48 [WDS] Hot Module Replacement enabled. client:52 [WDS] Live Reloading enabled. DevTools failed to parse SourceMap: webpack:///node_modules/sockjs-client/dist/sockjs.js.map

Awaiting further guidance. Regards

Bipin

On Fri, Sep 11, 2020 at 3:13 AM Tod E. Kurt notifications@github.com wrote:

To see Electron runtime errors, click on the Console tab in the Developer Tools window.

npm install will install all dependencies required. I am unclear why you are getting that error. Please install from a git checkout not a zip.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/todbot/Blink1Control2/issues/146#issuecomment-690748061, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADJ2EZULZLYXZLBQVLWELF3SFFCBDANCNFSM4RF4GKEQ .

todbot commented 3 years ago

Your setup seems to have a lot of strange behavior, producing non-typical errors.

What is your intended outcome? if you are looking for a pre-built version of Blink1Control2, you can find that in the releases section.

If you're looking to learn about how to use Electron with blink(1), I think a better place to start would be electron-blink1-toy at https://github.com/todbot/electron-blink1-toy