Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Answered

Reloading index.ts while running npm

(0) ShareShare
ReportReport
Posted on by 2

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?

  • Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at
    Re: Reloading index.ts while running npm

    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 

  • Verified answer
    alchin Profile Picture
    Microsoft Employee on at
    Re: Reloading index.ts while running npm

    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

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.

Helpful resources

Quick Links

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 87 Most Valuable Professional

#2
mmbr1606 Profile Picture

mmbr1606 71 Super User 2025 Season 1

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 65 Super User 2025 Season 1

Overall leaderboard