Skip to content
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

Compilation error #1196

Open
chatelao opened this issue Feb 15, 2021 · 1 comment
Open

Compilation error #1196

chatelao opened this issue Feb 15, 2021 · 1 comment

Comments

@chatelao
Copy link

https://github.com/microsoft/pxt-adafruit/blob/master/sim/dalboard.ts#L140

[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.

INTERNAL ERROR: Error: Exit code: 2 from cd sim; node ../node_modules/typescript/bin/tsc
    at ChildProcess.<anonymous> (/home/vagrant/pxt/built/nodeutil.js:85:24)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:915:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
setup.sh completed
@adjian
Copy link

adjian commented May 13, 2021

Hello, I met the same error. Do you have some solution for this issue? Can you share your solution? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants