-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
npm link issue #9541
Comments
I think doing |
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 ? |
@gurumoorty-s Hello, I have the same problem. Have you solved it |
@gurumoorty-s Hello, have you fixed this issue? |
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
The text was updated successfully, but these errors were encountered: