Comments (7)
New test: in first case I compiled then added Arduino extension, but if I l delete node_modules and launch again "yarn install", the "yarn start" does not compile:
ERROR in ./node_modules/scratch-vm/src/extensions/scratch3_onegpioArduino/index.js
Module not found: Error: Can't resolve 'sweetalert' in '/home/babas/Téléchargements/Scratch3_git_sansMaJ/scratch-gui/node_modules/scratch-vm/src/extensions/scratch3_onegpioArduino'
@ ./node_modules/scratch-vm/src/extensions/scratch3_onegpioArduino/index.js 44:0-21
@ ./node_modules/scratch-vm/src/extension-support/extension-manager.js
@ ./node_modules/scratch-vm/src/virtual-machine.js
@ ./node_modules/scratch-vm/src/index.js
@ ./src/containers/controls.jsx
@ ./src/playground/blocks-only.jsx
ERROR in unable to locate '/home/babas/Téléchargements/Scratch3_git_sansMaJ/scratch-gui/node_modules/scratch-vm/dist/web/extension-worker.{js,js.map}' glob
Still trying...
from s3onegpio.
After added sweetalert in Scratch-vm, now scratch-gui warns: "ERROR in unable to locate '/home/babas/Téléchargements/Scratch3_git_sansMaJ/scratch-gui/node_modules/scratch-vm/dist/web/extension-worker.{js,js.map}' glob"
from s3onegpio.
@SebCanet Hi Seb,
I just rebuilt using a VirtualBox install of Ubuntu 22.04, and s3onepgpio is working for me. Here are the steps I took:
- I installed node.js version v12.22.9 using the instructions from this page.
- I installed npm using
sudo apt install npm
- I installed yarn with:
npm install yarn
- I cloned s3onegpio:
git clone https://github.com/MrYsLab/s3onegpio.git
-
I followed these instructions to do the build.
-
I opened firefox to http://0.0.0.0:8601/
If you do the same, does it still fail? I am assuming you had not made any changes to the code when you did a yarn start.
from s3onegpio.
Sorry, I wasn't clear, in fact from a scratch-gui + scratch-vm clone from the official Scratch repository (and thus the latest versions) I tried to insert the s3onegpio extensions.
The manipulations you mention work very well, the problem is not s3onegpio, it's rather how to add the extensions one by one in a recent installation of Scratch. Or maybe is it simplier to update scratch in your s3onegpio repo?
Thanks in advance.
from s3onegpio.
The "official" Scratch code is a mess. It is probably easier to start with my code based on an older version of Scratch simply because it works. I have not kept up with the latest Scratch changes. I tried that in the past, and it took me many hours to make things work again with no added benefit. The Scratch team does a miserable job documenting what their updates "fix."
Besides getting the latest version, is there anything missing from Scratch using my code as a basis?
from s3onegpio.
Ok, it seems that for many years, collaborating with Scratch team seems impossible. So I'll try to change my extension (it communicates with building in SweetHome3D and I would like to add it with board communication to help kids create a toolchain from design to test on a scale model, with same sensors and actuators than in 3D model) to make compatible with your version.
Between this 2 version of Scratch, this is what I noticed only that there is no more backpack, except that everything seems the same. So the work is maybe in 'back office'.
from s3onegpio.
No problem. If you have any questions about creating an extension, I will try to answer them if possible. There are so many files to touch when adding an extension.
I, too, am not very impressed with the Scratch team's support. The reason is probably due to the team consisting of an ever-changing group of graduate students. Also, since it's MIT, they think they know more than anyone else ;-). I will close this issue, but if you comment here, I will see the comment.
from s3onegpio.
Related Issues (20)
- Firefox not able to open project and do not remember installed extensions. HOT 8
- s3rp crash on latest Win10/ Google Chrome when using read digital pin HOT 4
- Translation for Dutch (NL) HOT 6
- Translation for Japanese (robohat) HOT 1
- Translation for Japanese (playground_express) HOT 1
- Thanks for adoption of translation for Japanese HOT 2
- A simple installation procedure for Windows 10 HOT 1
- Initializing functions is lacking for pigpiod HOT 6
- Websocket Gateway exited... without pressing ctl+c HOT 6
- How do I create a Blcok program that can be uploaded to Arduino permanently ? HOT 1
- Translation for German (de) HOT 2
- How to read digital input from sensor HOT 6
- The current version of S3OneGPIO fails to compile by "yarn start". HOT 3
- Re: Thanks for adoption of translation for Japanese #43 HOT 2
- Connection to ESP8266 seems to be unreliable HOT 3
- a Japanese translation for the extension "OneGpio Raspberry Pi Pico". HOT 1
- Request to host these extensions in my own Scratch 3 fork HOT 2
- DC motor PWM control backwards HOT 3
- Does arduino work standalone? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from s3onegpio.