Skip to main content
Solved

2024R2 Preview: Long build times for frontend source code


MichaelShirk
Captain II
Forum|alt.badge.img+4

Is this expected?

It takes a frustrating amount of time for the build process to run for frontend source code.
I was hoping development would be faster on the new UI, but so far it has been very slow. Every time I make a change to the typescript or html files, rebuilding the source code takes approximately a minute, even for a simple screen.

 

Anyone have any ideas?

Best answer by MichaelShirk

Here is what I’ve learned since asking this question, in case anyone else has the same concern.
I asked this same question in one of the UI sessions at DevCon and was told that using the 

npm run watch

command (with screen or module parameters) will solve the issue and will enable refreshing the page to immediately see changes that were made in the source files.
Here’s the screenshot from the help docs, explaining how to do that.
 

 

Hope this helps anyone who has the same question!

View original
Did this topic help you find an answer to your question?

2 replies

MichaelShirk
Captain II
Forum|alt.badge.img+4
  • Author
  • Captain II
  • 132 replies
  • Answer
  • October 28, 2024

Here is what I’ve learned since asking this question, in case anyone else has the same concern.
I asked this same question in one of the UI sessions at DevCon and was told that using the 

npm run watch

command (with screen or module parameters) will solve the issue and will enable refreshing the page to immediately see changes that were made in the source files.
Here’s the screenshot from the help docs, explaining how to do that.
 

 

Hope this helps anyone who has the same question!


Mike Gifford
Jr Varsity III
Forum|alt.badge.img
  • Jr Varsity III
  • 25 replies
  • October 28, 2024

The watch option is very convenient - but I have seen some circumstances where it detects a change, recompiles and the change isn’t reflected in the output - had to do a “full” build to get the changes to show.  Just keep an eye out for that - I think in my case it was specific to a grid and making changes to columns in that grid via the view definition.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings