Open gurumoorty-s opened 3 months ago
I think doing npm install
unlinks everything, use npm ci
instead.
Which approach should I follow? First one or the Second one @CST1229 ?
Which approach should I follow? First one or the Second one @CST1229 ?
second
It Still shows the same error as mentioned in Approach Two. What is the workaround @CST1229 ?
Expected Behavior
scratch-gui and scratch-vm should have linked correctly.
Actual Behavior
I have two approaches so let me tell both the errors:
Approach One: On doing
npm start
I get a blank screen instead of the Scratch interface.Approach Two: On doing
npm start
I get the following error:ERROR in ./src/components/gui/gui.jsx Module not found: Error: Can't resolve 'scratch-vm' in 'E:\Scratch_Mod\scratch-gui\src\components\gui' @ ./src/components/gui/gui.jsx 14:0-28 373:27-29 @ ./src/containers/gui.jsx @ ./src/playground/blocks-only.jsx
i 「wdm」: Failed to compile.
Steps to Reproduce
For the First Approach:
mkdir Scratch
cd Scratch
git clone https://github.com/scratchfoundation/scratch-gui.git
git clone https://github.com/scratchfoundation/scratch-vm.git
cd scratch-vm
npm install
npm link
npm run watch
cd ../scratch-gui
npm install
npm link scratch-vm
npm start
For the Second Approach:
mkdir Scratch
cd Scratch
git clone https://github.com/scratchfoundation/scratch-gui.git
git clone https://github.com/scratchfoundation/scratch-vm.git
cd scratch-vm
npm install
npm link
cd ../scratch-gui
npm install
npm link scratch-vm
npm start
System Details
So I have a Dell G5 5500 with Windows 11 Python 3.12 Java 8 JDK 22 Node Js 21.7.1 npm 10.5.0