Forum Discussion

nipW's avatar
nipW
Brass Contributor
Mar 06, 2019

SharePoint SPX development webpart

Hi,

I m new to SPX development and I have created my first web part using Vs Code and run successfully, but when I do changes on the code and then run the code it won't reflect the changes on Sharepoint even I removed and re add the web part. 

Every time I create a new project and do the changes it will reflect without issue, I was thinking it will be a cache issue on browser and I remove the cache, but still not reflecting the changes. 

 

can someone please help me. 

Thanks. 

  • nipW's avatar
    nipW
    Mar 12, 2019

    Hi Vishwanatha,

     

    Thanks for your reply, seems to be it is working now. But I haven't done any specific changes, so I cannot post the answer/ findings.

    Only thing that I can think of is save every changes before run the gulp serve. 

     

    Thanks all. 

     

  • Hi nipW ,

    let me understand better :)

    Did you install on app catalog?

    If yes, did you deploy / update a new versione?

    My hint is to execute npm clean before gulp bundle --ship and gulp package-solution --ship

     

    Cheers

    Federico

    • nipW's avatar
      nipW
      Brass Contributor

      Hi Federico,

      No I haven't installed it, I m using local host Work bench with gulp serve. If i create a new project and run gulp serve then the new project will reflect, but if you do a small modification and re run the gulp serve and re add the web part I cannot see the changes. 

       

      Thanks. 

  • Hi nipW 

     

    Like FedericoPorceddu82 mentioned, if this happens when deploying a new version of the app, make sure that you update the version on config > package-solution.json

    Keeping the same app version number on different code versions can lead to this issue.

    • nipW's avatar
      nipW
      Brass Contributor

      HI Ujwaln,

      Thanks for your reply, could you you please explain to me why I need to worry about the tenancy setting as I m trying to running on the local host.

       

      Thanks. 

Resources