When i upload my web part in app catalog, after install in dev site. I have following error:
How to solve this problem?
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.
Sign up to join this communityIs your gulp server is running? Try to make https://localhost:4321/ as trusted url (browser options) and that will solve your problem.
Otherwise you can upload the scripts to document library and use in client side web part.
Also note you can use this for development, as you are using resource from your localhost. But when you move to production you need to host the scripts file somewhere accessible to everyone (a document library or CDN). To achieve this you can navigate to solution config -> write-manifests.json
and upadate cdnBasePath
property to CDN URL or Document Library URL (till folders in which your scripts are uploaded).
The page is trying to load resources from localhost
.
If you have uploaded to SharePoint-Online this is "wrong".
after upload in SPOffice365
, he means .sppkg
and not script files, which is clear by seeing the error. Anyways, I guess he got the solution, which is more important as a community. :)
Aug 3, 2017 at 8:02
https://localhost:4321/
as trusted url and that will solve your problem. Otherwise you can upload the scripts to document library and use in client side web part.