0
///<reference path="HtmlElementsAction.ts" />
///<reference path="DesktopSocket.ts" />

 module Pong {
        export class webPage extends HtmlElementsAction {
            private socket;

            constructor() {
                super();
                this.socket = new DesktopSocket(this);
            }
        }
    }

I've this code.

When I'm executing it, in browser's console is error:

Uncaught TypeError: undefined is not a function

Error is on new DesktopSocket(this);

What am I doing wrong?

1 Answer 1

3

Common error. Check the order of your script tags or if compiling with "out" the order of arguments to tsc.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.