Giter Club home page Giter Club logo

Comments (7)

SebCanet avatar SebCanet commented on August 29, 2024

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.

SebCanet avatar SebCanet commented on August 29, 2024

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.

MrYsLab avatar MrYsLab commented on August 29, 2024

@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:

  1. I installed node.js version v12.22.9 using the instructions from this page.
  2. I installed npm using
sudo apt install npm
  1. I installed yarn with:
npm install yarn
  1. I cloned s3onegpio:
git clone https://github.com/MrYsLab/s3onegpio.git
  1. I followed these instructions to do the build.

  2. 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.

SebCanet avatar SebCanet commented on August 29, 2024

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.

MrYsLab avatar MrYsLab commented on August 29, 2024

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.

SebCanet avatar SebCanet commented on August 29, 2024

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.

MrYsLab avatar MrYsLab commented on August 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.