microsoft / pxt-adafruit

Microsoft MakeCode editor for Adafruit Circuit Playground Express
https://makecode.adafruit.com
Other
81 stars 77 forks source link

pxt serve --cloud failed #1200

Open adjian opened 3 years ago

adjian commented 3 years ago

Hi, My system was ubuntu20.04, and I follow guide https://learn.adafruit.com/installing-makecode-for-adafruit?view=all to install makecode-adafruit. Describe the bug finally, after I ran command "pxt serve --cloud", I got a error as following: [run] cd sim; node ../node_modules/typescript/bin/tsc dalboard.ts:140:54 - error TS2554: Expected 1 arguments, but got 0.

140 this.builtinParts["ir"] = this.irState = new InfraredState();


  ../built/common-sim.d.ts:752:21
    752         constructor(board: BaseBoard);
An argument for 'board' was not provided.

Found 1 error.


*** Build failed: target build failed: Exit code: 2 from cd sim; node ../node_modules/typescript/bin/tsc Error: Exit code: 2 from cd sim; node ../node_modules/typescript/bin/tsc at ChildProcess.ch.on (/home/jun/makecode-adafruit/pxt/built/nodeutil.js:78:24) at ChildProcess.emit (events.js:198:13) at maybeClose (internal/child_process.js:982:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)


To Reproduce Steps to reproduce the behavior:

  1. follow the install guide: https://learn.adafruit.com/installing-makecode-for-adafruit?view=all

Screenshots

Desktop (please complete the following information):