Sp-dev-fx-webparts: react-script-editor doest not display in the menu

Created on 19 Oct 2020  路  6Comments  路  Source: pnp/sp-dev-fx-webparts

Hello team, I have deployed the web part react-script-editor to our tenant for testing but I can not see it in the web part selection. First, I have tried to deploy it individually I added it to to store and then to the communication site. I could see it in the site content but I could not add it to the page. Second, I tried to change the json and automatically deploy it to the tenant anywhere and same issue. Do you have any idea what I am doing wrong?

https://github.com/pnp/sp-dev-fx-webparts/tree/master/samples/react-script-editor

webparts
store

question

Most helpful comment

I installed the app with no issues on a communication site.

_Steps_

  1. set "requiresCustomScript" to false
  2. gulp bundle --ship / gulp package-solution --ship
  3. install app in tenant app catalog
  4. install react-script-editor on communication site

_Result_
modernScript

_Possible solution_
I found that some people had the same issue as you. They resolved it by applying some PowerShell. (see https://www.youtube.com/watch?v=Fz3NeLLKrpE - 10:30)

reactionPowershell

All 6 comments

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

Have you tried changing "ScriptEditorWebPart.manifest.json" ? (react-script-editor docs)

deployModernScript

Yes, I have also tried to change this attribute and without success. Does it work on your side? If it works generally I will try it again. I am just not sure if is it just on my side or general issue.

I installed the app with no issues on a communication site.

_Steps_

  1. set "requiresCustomScript" to false
  2. gulp bundle --ship / gulp package-solution --ship
  3. install app in tenant app catalog
  4. install react-script-editor on communication site

_Result_
modernScript

_Possible solution_
I found that some people had the same issue as you. They resolved it by applying some PowerShell. (see https://www.youtube.com/watch?v=Fz3NeLLKrpE - 10:30)

reactionPowershell

Thank you for your help and time, it works! :)

Great tool...but I wish the paragraph at https://github.com/pnp/sp-dev-fx-webparts/tree/master/samples/react-script-editor#deploy-to-non-script-sites--modern-team-sites said something like 'The webpart may not be available in the webpart selection menu on page insertion if "requiresCustomScript" is "true".'

Also, note the misspelling of "available" in the following paragraph, https://github.com/pnp/sp-dev-fx-webparts/tree/master/samples/react-script-editor#deploy-tenant-wide.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

floriemoulin picture floriemoulin  路  4Comments

joshburns49 picture joshburns49  路  3Comments

MaxDaxDax picture MaxDaxDax  路  4Comments

ChristianSaldivar picture ChristianSaldivar  路  3Comments

Brentless picture Brentless  路  5Comments