sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

Error with "Use custom dialog boxes with SharePoint Framework Extensions" tutorial

Open sfmp opened this issue 8 years ago • 11 comments

When testing the dialog and clicking "Load debug scripts" as prompted am getting the below error.

***Error loading debug manifests. ***Error loading debug script. Ensure the server is running and the "debugManifestsFile" parameter URL is correct. Error: Script error for "https://localhost:4321/temp/manifests.js" http://requirejs.org/docs/errors.html#scripterror

sfmp avatar Apr 17 '18 08:04 sfmp

That seems to imply that your localhost is not running and that your serve.json file is not correct, so would double check those. Can you share the content of those files as currently there's really not enough information to assist in the root cause?

VesaJuvonen avatar Apr 17 '18 10:04 VesaJuvonen

Thanks for the response. There was an incorrect reference in the json file

sfmp avatar Apr 18 '18 07:04 sfmp

I am getting the same error. Could you please point out where was the incorrect reference?

mubash7 avatar Apr 18 '18 16:04 mubash7

Let's reopen this as if the tutorial is wrong, we absolutely need to get it updated to avoid other people to run into this issue.

VesaJuvonen avatar Apr 18 '18 17:04 VesaJuvonen

Further info - the error is occurring on Edge browser. Works fine on IE and chrome.

mubash7 avatar Apr 18 '18 18:04 mubash7

In the serve.json file I had to remove the $schema reference at the top.

{ "$schema": "https://dev.office.com/json-schemas/core-build/serve.schema.json", "port": 4321, "https": true, "serveConfigurations": { "default": { "pageUrl": "https://xxxxx.sharepoint.com/sites/xxxxx/publishingsite/Documents/Forms/AllItems.aspx", "customActions": { "7d00d36d-6d8b-4efa-b850-d597e7a05ad0": { "location": "ClientSideExtension.ListViewCommandSet.CommandBar", "properties": { "sampleTextOne": "One item is selected in the list", "sampleTextTwo": "This command is always visible." } } } } } }

sfmp avatar Apr 19 '18 08:04 sfmp

ok. I will try that.

mubash7 avatar Apr 19 '18 08:04 mubash7

Hi, I'm also getting this error when I use Gulp Serve which opens IE Edge browser as default one. However, when I copy the URL and try it on Firefox, it works perfectly fine. Something messing up in Edge only I believe.

abashutosh avatar Oct 05 '18 05:10 abashutosh

In order to resolve this issue, I have just opened the (https://localhost:4321/temp/manifests.js) in chrome and made it not secure for test. During this I have kept my command prompt open with build option i.e. gulp serve --nobrowser . You will able to see all the request made during this test in command prompt.

test issue

MeenaMakwana avatar Nov 07 '18 21:11 MeenaMakwana

@abashutosh / @MeenaMakwana If you're still having an issue, can you open a new issue with additional detail? The issue that @sfmp originally posted is resolved according to his comment so your issue, if still present, is different and needs different context. Please make sure to include as much detail as possible (don't just reference this issue). Thanks!

andrewconnell avatar Aug 06 '19 14:08 andrewconnell

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues

msft-github-bot avatar Jan 28 '20 00:01 msft-github-bot