Create terminal on command execution

Hi there! I am trying a develop a custom IDE and have managed to run it in electron with a number of my own custom extensions. In one of my extensions I am trying to use command execution to launch the terminal and run a command in there but so far I have unable to attain much success as when I try to import the TerminalService in my extension I get an error on compile that says failed to solve the module. Can someone guide me how to create a terminal on command execution?
Inside the extension constructor I did something like this,

        @inject(TerminalService) private readonly terminalService: TerminalService,
    ) { }

And then within the registerCommand method, I did something like this,

execute: () => {   
        shellArgs: [],
        title: "Terminal"
    }).then((terminal) => {