scratchfoundation / scratchfoundation/scratch-editor

type error in packages/scratch-gui/src/reducers/vm.ts(1,16)

Open
#382 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
281
Forks
276
Avg merge
7d 8h
Merged PRs (30d)
6

Description

I cloned the scratch-editor code and npm i, and then cd to the scratch-gui and run npm start, and there is an error.

ERROR in /home/changbinghu/projects/scratch-editor/packages/scratch-gui/src/reducers/vm.ts(1,16)
TS2307: Cannot find module '@scratch/scratch-vm' or its corresponding type declarations.

It is an typescript error, how to fix this erorr?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with packages/scratch-gui/src/reducers/vm.ts and reproduce the reported command sequence: npm i, then npm start from scratch-gui. Check how @scratch/scratch-vm is resolved in the scratch-editor monorepo and confirm that the TS2307 error is gone; the issue names no test to run.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.