As soon as I posted the question, I realized that I needed to check my tslint.json file and I found this:
"no-constructor-vars": true,
Apparently this is described on the tslint github page:
no-constructor-vars prohibits public and private modifiers for constructor parameters.
So the solution is to just disable no-constructor-vars :
"no-constructor-vars": false,
source share