Forum Discussion

Will # _________ H's avatar
Will # _________ H
Brass Contributor
Mar 26, 2020

Regarding SPFX development issue

Hi there,

 

my sharepoint is 2019 on premise NOT sharepoint online. after run the command "yo Pernille-Eskebo/sharepoint", I choose 2019 on premise and cloud.

 

I attempt to test SPFX function following the MSFT article step by step: https://docs.microsoft.com/en-us/sharepoint/dev/spfx/extensions/get-started/building-simple-cmdset-with-dialog-api

 

I alter some configuration for my environment like:

 

  1. serveConfigurations in serve.json : change pageUrl and point to my URL of document library
  2. ClientSideInstance.xml and Elements.xml in sharepoint\assets : Change ListTemplateId ="100" to "101" due to I need to add this feature to my document library

 

After publishing and testing, I cannot find out what's difference. all button is the same... It should be there is button will be shown up following MSFT article.

 

does anyone have any idea on it?

 

Thanks

 

 

 

 

 

4 Replies

  • Sudharsan K's avatar
    Sudharsan K
    Iron Contributor
    Hi,
    I think there is something went wrong while choosing the version. SP 2019 supports generator version 1.4.1 and it doesn't include extensions. So please verify your dev environment and the versions of the module in the package.json file.

    Hope it helps, please like it or mark it as a solution if it resolves ur clarification or issue
    -Sudharsan K...
    • Will # _________ H's avatar
      Will # _________ H
      Brass Contributor

      Sudharsan K 

      Thanks ... I have solved the issue. It's not version issue. when we test this, the "loaded debug scripts" need to be performed. anyway I solved the issue. thanks

      • Sudharsan K's avatar
        Sudharsan K
        Iron Contributor
        Hi, try to mark the correct response as the solution that will help others.

Resources