TypeError: Class extends value undefined is not a constructor or null

Hey, newbie here in both TypeScript and Sapphire, and I'm trying to build a command but I'm getting the error specified in the title, my code for the constructor is the following:
public constructor(context: CommandContext, options: Command.Options) {
                super(context, {
                        description: 'Play a song',
                        preconditions: [ new VoiceChannelOnly() ],
                        options: [
                                {
                                        name: 'play',
                                        description: 'Play a song from YouTube',
                                        type: 'STRING',
                                        required: true
                                }
                        ]
                });
        }


I know it isn't the best but I'm not sure what's wrong with this, any help?
Solution
Write a proper tsconfig. By default with no target set it compiles to ES3 which doesn't support classes.
Was this page helpful?