2

I have coded a webpart using SPFx framework, and am trying to add the webpart into the page layout to avoid any changes by the users. The site is using Classic Experience, and I have coded the Master Page and Page Layout with the help of Design Manager.

As per Hardcoding a Webpart in Page Layout, I have exported the webpart, and upload it to the Webpart Gallery. However, when I go to my Page Layout->Snippets, and after selecting my uploaded webpart, it returns the following error

Cannot create an object of type 'System.Collections.Generic.List`1[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]

I also noted that Billy has encountered the same error at Is there any way to have a static custom made SPFx web-part in a page-layout template you have created in Design manager (Sharepoint Online)?

3
  • I have the same issue, did you found any solution?
    – Sam
    Commented Oct 18, 2018 at 21:42
  • No, I haven't had any luck on this.
    – Wee
    Commented Oct 19, 2018 at 6:08
  • I removed this tag : Links="(Collection)" And it is working for me.
    – Haroun
    Commented Jun 13, 2019 at 14:17

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.