Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem encountered installing and running #146

Open
bipinmehta opened this issue Sep 10, 2020 · 3 comments
Open

Problem encountered installing and running #146

bipinmehta opened this issue Sep 10, 2020 · 3 comments

Comments

@bipinmehta
Copy link

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. [email protected] requires a peer of [email protected] || ^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_collection_name#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
Copy link
Owner

todbot commented Sep 10, 2020

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
Copy link
Author

bipinmehta commented Sep 11, 2020 via email

@todbot
Copy link
Owner

todbot commented Sep 11, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants