When trying to extend a class from a class in a node_modules the typescript compiler throws a error saying:
node_modules
Property \'source\' is protected but
For me it was my editor issue. VSCode was including an import from the declaration files (*.d.ts) while the actual class was in another place.
*.d.ts
I replaced the declaration file import with the actual class file import.