
Hello, I have this issue for a while and today it becomes really troublesome for me, Initially I developp my pcf component in an old environment that I have generated two years ago, because this environment works without any issue.
If I generate a new component with the updated dependencies, nothing is working as expected and I can’t understand how to work with the code, what I’m doing:
I initiate the pcf component and I install the dependencies:
pac pcf init --namespace SampleNameSpace --name SampleComponent --template field --run-npm-install
I execute npm run build, and then npm start, everything is working well.
Then I want to edit the code, for exemple I have the following constructer, and I happen to remove the comments:


And then I execute npm run build, and I have this very helpful error message:

I litterally just removed comments and this happens, I don’t know if it’s an expected error but what am I supposed to do with this log, it’s the same a I add just a variable, maybe it’s because I can’t add unused variables but I always have this same error message.
So I’m wondering If I’m doing something wrong with the installation, It’s the same I used in the past and nothing has changed in the Microsoft documentation.
I tried on two different computer with the latest updates, version of virtual studio… and I have the same issue.
Thank you for your assistance.
Best regards,
Djilali.