cannot build dev-tools, nor run

55 views
Skip to first unread message

Licorne Magique

unread,
Jul 28, 2021, 6:09:00 AM7/28/21
to Blockly

Hi,
I just copied Blockly samples, and tried to compile it, but at 'npm install' I have many eslint advertisment. If I try 'start' script or 'build' script, I have this problems:
errors.jpg
Any idea?
Thanks.

Beka Westberg

unread,
Jul 28, 2021, 9:44:13 AM7/28/21
to blo...@googlegroups.com
Hello,

Hmm that's a bit weird. Usually eslint warnings don't prevent the playground from running (they just clutter up your console hehe). Are you trying to run a specific plugin or sample? If so, which one? If not, could you try `npm install` and `npm run start` in the plugins/block-plus-minus directory? I think the issue may be that `npm run start` isn't defined for the root of the project.

I hope that helps! Definitely tell me how it goes and if there are further problems :D
--Beka

--
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/blockly/61b10e17-2271-498a-ad69-4533681ab0d9n%40googlegroups.com.

Licorne Magique

unread,
Jul 28, 2021, 9:55:30 AM7/28/21
to Blockly
Yes, I was trying to run dev-tools plugins, and just this one. So inside its folder, I run a 'npm install' and then a 'npm run start'.
It's devtools 2.5.3.
With the plus-minus-plugin I have the sae problem!? It's version 2.0.34
Thanks!

Beka Westberg

unread,
Jul 28, 2021, 10:07:57 AM7/28/21
to blo...@googlegroups.com
Hmm ok, I just tried it, and I do get those warnings, but the playground also runs. I know this may sound weird, but could you try doing `npm run start`, and then after the page loads, refresh it a few times? Sometimes there is an issue where the playground doesn't load correctly the first time, and needs to be refreshed.

Best,
Beka

Licorne Magique

unread,
Jul 28, 2021, 10:11:44 AM7/28/21
to Blockly
I tried again,with clean install, and after few times, I refresh Firefox and still have an error on http://0.0.0.0:3000/test
And if I try just dragging index.html, sockjs.js does not permit url with file:///

Licorne Magique

unread,
Jul 28, 2021, 10:17:56 AM7/28/21
to Blockly
What I did:
1. download blockly-samples,
2. unzip it,
3. launch shell inside blok-plus-minus plugin
4. launch 'npm install'
5. fix error because this package.json needs Blockly v3, so I upgrade this dependency with v6,
6. launch again 'npm install',
7. launch 'npm run start'

Licorne Magique

unread,
Jul 28, 2021, 10:26:12 AM7/28/21
to Blockly
ANSWER !!!! 0.0.0.0 does not work on Firefox, on Windows, I need to type 127.0.0.1
Sorry for this Windows particular pb but this may be a problem to fix on all tests sripts. In fact it seems that on Linux it fixes internally 0.0.0.0 to localhost (or 127.0.0.1) on any interface (equivalent to 0.0.0.0), but Windows does not do that job, so you have to type it by yourself.
Thanks for helping.

Beka Westberg

unread,
Jul 28, 2021, 10:49:07 AM7/28/21
to blo...@googlegroups.com
Wow I'm so glad you figured it out :D That's such a tricky issue! I've filed an issue in samples to track fixing this.

Sorry I couldn't be more helpful with debugging this :/ If you have any further questions I'm happy to help!
--Beka

Reply all
Reply to author
Forward
0 new messages