-
Notifications
You must be signed in to change notification settings - Fork 20
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
Can't add the extensions #22
Comments
If you compiled scratch-gui as described here https://github.com/scratchfoundation/scratch-gui/wiki/Getting-Started
|
I have the same problem when I do npm start
|
car123134, npm is part of Node 12 You must complete the prerequisites: |
I fixed that Issue i have another issue I added the extension to scratch and when i run npm start . it starts but when I press add extension it only shows the default |
Dou You call
from extension folder? |
yes but I think something is going wrong when I type npm register
|
Yes, sorry, I made a mistake. Of course You could try this Or copy all files F:\temp\why\scratch-lego-bluetooth-extensions\scratch-vm\src\extensions\scratch3_* to F:\temp\why\scratch-gui\node_modules\scratch-vm\src\extensions\scratch3_* But in the latter case, you will most likely need to manually edit the scripts in these folders and replace the paths in the |
i copied the files from F:\temp\why\scratch-lego-bluetooth-extensions\scratch-vm\src\extensions\scratch3_* when you said
what do you mean i don't understand you mean i need to change something in F:\temp\why\scratch-lego-bluetooth-extensions\scripts I copied the files manually like you said I did the register command I think still the same error or whatever it said I started after and see the same result nothing the default |
Maybe I can tell you another way. don't think about "in the require(' functions" yet Actually I compiled it under Linux. But then I copied the already compiled code to Windows and it works in both systems. So I can miss some problems when compiling in Windows |
I believe it didn't have the error when I did the register and can i use wsl ubuntu distro the error cached modules 25.9 MiB (javascript) 61.9 MiB (asset) [cached] 3603 modules ERROR in ../scratch-vm/src/extensions/scratch3_controlplus/index.js 1:22-54 ERROR in ../scratch-vm/src/extensions/scratch3_controlplus/index.js 2:12-32 ERROR in ../scratch-vm/src/extensions/scratch3_duplotrain/index.js 4:12-32 ERROR in ../scratch-vm/src/extensions/scratch3_duplotrain/index.js 5:14-36 ERROR in ../scratch-vm/src/extensions/scratch3_duplotrain/index.js 6:26-61 ERROR in ../scratch-vm/src/extensions/scratch3_legoble/index.js 1:22-54 ERROR in ../scratch-vm/src/extensions/scratch3_legoble/index.js 2:12-32 ERROR in ../scratch-vm/src/extensions/scratch3_legoluigi/index.js 1:24-58 ERROR in ../scratch-vm/src/extensions/scratch3_legoluigi/index.js 2:12-32 ERROR in ../scratch-vm/src/extensions/scratch3_legomario/index.js 1:24-58 ERROR in ../scratch-vm/src/extensions/scratch3_legomario/index.js 2:12-32 ERROR in ../scratch-vm/src/extensions/scratch3_legopeach/index.js 1:24-58 ERROR in ../scratch-vm/src/extensions/scratch3_legopeach/index.js 2:12-32 ERROR in ../scratch-vm/src/extensions/scratch3_legoremote/index.js 4:12-32 ERROR in ../scratch-vm/src/extensions/scratch3_legoremote/index.js 5:14-36 ERROR in ../scratch-vm/src/extensions/scratch3_legoremote/index.js 6:26-61 ERROR in ../scratch-vm/src/extensions/scratch3_poweredup/index.js 1:22-54 ERROR in ../scratch-vm/src/extensions/scratch3_poweredup/index.js 2:12-32 ERROR in ../scratch-vm/src/extensions/scratch3_spikeessential/index.js 1:22-54 ERROR in ../scratch-vm/src/extensions/scratch3_spikeessential/index.js 2:12-32 20 errors have detailed information that is not shown. webpack 5.97.1 compiled with 20 errors in 6226 ms |
Ok, it is good :-) |
now i have 18 errors cached modules 25.9 MiB (javascript) 61.9 MiB (asset) [cached] 3609 modules ERROR in ../scratch-vm/src/extensions/scratch3_controlplus/index.js 1:22-54 ERROR in ../scratch-vm/src/extensions/scratch3_controlplus/index.js 2:12-32 ERROR in ../scratch-vm/src/extensions/scratch3_duplotrain/index.js 4:12-32 ERROR in ../scratch-vm/src/extensions/scratch3_duplotrain/index.js 5:14-36 ERROR in ../scratch-vm/src/extensions/scratch3_duplotrain/index.js 6:26-61 ERROR in ../scratch-vm/src/extensions/scratch3_legoluigi/index.js 1:24-58 ERROR in ../scratch-vm/src/extensions/scratch3_legoluigi/index.js 2:12-32 ERROR in ../scratch-vm/src/extensions/scratch3_legomario/index.js 1:24-58 ERROR in ../scratch-vm/src/extensions/scratch3_legomario/index.js 2:12-32 ERROR in ../scratch-vm/src/extensions/scratch3_legopeach/index.js 1:24-58 ERROR in ../scratch-vm/src/extensions/scratch3_legopeach/index.js 2:12-32 ERROR in ../scratch-vm/src/extensions/scratch3_legoremote/index.js 4:12-32 ERROR in ../scratch-vm/src/extensions/scratch3_legoremote/index.js 5:14-36 ERROR in ../scratch-vm/src/extensions/scratch3_legoremote/index.js 6:26-61 ERROR in ../scratch-vm/src/extensions/scratch3_poweredup/index.js 1:22-54 ERROR in ../scratch-vm/src/extensions/scratch3_poweredup/index.js 2:12-32 ERROR in ../scratch-vm/src/extensions/scratch3_spikeessential/index.js 1:22-54 ERROR in ../scratch-vm/src/extensions/scratch3_spikeessential/index.js 2:12-32 18 errors have detailed information that is not shown. webpack 5.97.1 compiled with 18 errors in 4017 ms |
Where do you call |
no i did it from F:\temp\why\scratch-lego-bluetooth-extensions i did it now from F:\temp\why\scratch-gui but still the same errors |
Do You have a lib folder inside F:\temp\why\scratch-vm\src\extensions\scratch3_controlplus? (and other from this extension) |
Yes, it should be a link to the scratch3_legoble/lib folder, but we know there's something wrong with creating links |
thank you it works also is there a way to add Spike Prime as well ? |
I don't know, because I don't have SPIKE Prime Hub. I used this extension to program one wedo2.0 hub together with two PoweredUp hubs in one project |
ok thank you for the help |
I'm a little bit confused about the way I should add the extensions to scratch
can anyone please direct me how to add and use the extensions
The text was updated successfully, but these errors were encountered: