Announcements
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 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
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
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 551
WarrenBelz 430 Most Valuable Professional
Valantis 298