I tried to follow the "tutorial" in README.md, however I have issues when trying to enter the following code:
let msgrbridge = new ScratchBridge( "myusername", "mypassword", projectId);
However, when running the code, I get the error "ReferenceError: ScratchBridge is not defined"
I did npm install scratch3-bridge and it said that it successfully installed scratch3-bridge, but it still gives the reference error.
I tried to follow the "tutorial" in README.md, however I have issues when trying to enter the following code:
let msgrbridge = new ScratchBridge( "myusername", "mypassword", projectId);
However, when running the code, I get the error "ReferenceError: ScratchBridge is not defined" I didnpm install scratch3-bridge
and it said that it successfully installed scratch3-bridge, but it still gives the reference error.Am I doing something wrong here?
Edit: fixed it