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

Community site session details

Session Id : QpHzDeXEHCPI/3hw08V2pF
Power Apps - Power Apps Pro Dev & ISV
Answered

Reloading index.ts while running npm

Like (0) ShareShare
ReportReport
Posted on 10 Jun 2019 19:37:26 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 11 Jun 2019 at 08:02:36
    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 10 Jun 2019 at 20:03:31
    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 our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete