web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Reloading index.ts whi...
Power Apps
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?

I have the same question (0)
  • Verified answer
    alchin Profile Picture
    Microsoft Employee on at

    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

  • Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at

    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.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard