Today to modify and reload the index.ts of a running PCF component I cannot simply doing it by doing my change in VS and refresh the browser - the older version of the index.ts will be server after refresh. I have to stop the rnning npm session, do my change and do the npm start to view the cgange. Therefore I am wondering if I am doing something wrong. Is there any easy way to make a change to your index.ts file and see it after a browser reload? How are you doing it guys? What is the efficiet way to debug / change / test the code?
Hi, I open another terminal window, and type there "npm run build". This makes the changes into the output folder, and the browser (the harness) will be refreshed with the new content for you.
That's the fastest way for me.
Best regards,
Diana
Hi stelianr,
Currently, there isn't an easy way to have the control harness refresh upon changes to index.ts. The harness currently monitors for changes in the control output directory so as result, until you rebuild the control, the updates will not be reflected. Stopping the harness and running npm start is required.
We understand that this is not the most ideal inner loop experience and have plans to make this process much more streamlined so that changes get automatically reflected as soon as changed are saved to index.ts.
Thank you,
Alex
WarrenBelz
87
Most Valuable Professional
mmbr1606
71
Super User 2025 Season 1
Michael E. Gernaey
65
Super User 2025 Season 1