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

Error loading debug manifests - SPFx Extensions

Open bhanuchintha opened this issue 8 years ago • 15 comments

Hello Team,

While trying the SPFx extensions below example, i am getting the attached error.

https://docs.microsoft.com/en-us/sharepoint/dev/spfx/extensions/get-started/build-a-hello-world-extension

Error loading debug manifests: js error

Can you please help in this regard.

Thanks & Regards, Bhanu

bhanuchintha avatar Dec 22 '17 18:12 bhanuchintha

Looks like the local webserver isn't running. If you did the gulp serve or gulp serve --nobrowser step, then I'm guessing you are running Node.js 8.x which SPFx no like ATM.

Current, MSFT's guidance is to use Node v6.

But you can use Node v8 by prefacing your command with NODE_NO_HTTP2=1 like this:

NODE_NO_HTTP2=1 gulp serve

Ref #1002

andrewconnell avatar Dec 22 '17 18:12 andrewconnell

Hi @bhanuchintha, @andrewconnell already provide valuable input on this. Have you double checked that the localhost is running? - also ensure that you are using right versions. Could you come back and confirm the status, thx.

VesaJuvonen avatar Jan 02 '18 18:01 VesaJuvonen

Facing similar issue "loading debug manifests issues" in Edge, Firefox, though added trust-dev-cert. But works fine in IE. any idea?

Guys,

Contributing my two cents. I've deployed a custom 'Export to Excel' command action to SP Online. I have used SharePoint as the Content Delivery Network by changing the CDN path in the write-manifests.json file and ran gulp build --ship and gulp package-solution --ship. I have uploaded the files from deploy folder to CDN folder and the .sppkg file to appcatalog further deploying the solution. I did get a debugmanifests error and then I found out that, 1 The. Proxy environment variable was removed from the OS list of env variables. May be system update did that but not too sure. I then Added New User variable to the environment variables, Variable name: https_proxy Variable value: https://yourproxyurl 2. I also noticed that the gulp serve --nobrowser was not running. After re-running the gulp serve command, I am now able to load my command action.

P.S. Since SharePoint Framework fully makes use of open source technologies, I expect it to run seamlessly on any browser. Being said that, I give browser importance as per the following(High to Low):

  1. Internet Explorer
  2. Microsoft Edge
  3. Chrome
  4. Mozilla Firefox
  5. Safari, Opera and etc. etc. If you are using Mac as development environment, I would keep Chrome in the top list as we do not have IE for mac.

Hope this helps someone or may direct them in the right direction.

Thank you Ravi

ravinleague avatar Feb 02 '18 03:02 ravinleague

@bhanuchintha I had also the same problem. Then I ran gulp trust-dev-cert & gulp serve --nobrowser and followed all the steps. It worked afterwards. You may try it.

rkbhowmik avatar Feb 20 '18 11:02 rkbhowmik

Hello @andrewconnell @VesaJuvonen @rkbhowmik , Very sorry for responding lately on this discussion. Actually, the issue got resolved with the same approach that you have provided by running the local instalce gulp serve --nobrowser. Thanks for providing the details.

Thanks a lot again for the followup & support that is provided here.

Thanks &Regards, Bhanu

bhanuchintha avatar Mar 05 '18 07:03 bhanuchintha

Hi @andrewconnell I am running the local instance gulp serve --nobrowser and it works perfectly in Chrome and Edge but not Internet Explorer 11.

Do you have suggestions on what could be the issue with IE11?

jiovanniro avatar Nov 01 '18 02:11 jiovanniro

Does not work in Edge only IE11 for me.

simonrennocks avatar Nov 08 '18 16:11 simonrennocks

Hi all, this problem was pretty frustrating so I want to share what worked for me and hopefully it’ll work for you too.

I went to the Microsoft Docs and saw that you need to run “gulp trust-dev-cert” in your local dev environment. After doing this it loaded up in IE11

https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/get-started/build-a-hello-world-web-part

jiovanniro avatar Nov 08 '18 17:11 jiovanniro

Hello,

I have the same issue. I can run debug on and only in Chrome . When i try to do it on other browser, I get the error. SPFx 1.7.0 Node - v8.9.4 I ran gulp trust-dev-cert

EDIT: It is Application Customize Extension EDIT2: I scaffolded new App Customizer with latest version of yeoman and the issue is still in

Nothing. Sad.

Best Regards, Yavor

AntyfrizZz avatar Jan 21 '19 13:01 AntyfrizZz

@AntyfrizZz - please submit this as a new issue, so that your input does not get hidden or ignored in already closed issue. yes - it's sad if it does not work, but this seems like an environment issue related to some versions, as we cannot repro that with the given information. Can you please provide more details on the new issue, like which browsers you are referring to (not working) and which versions of those browsers you are using. Thx.

VesaJuvonen avatar Jan 21 '19 13:01 VesaJuvonen

@VesaJuvonen , here is the new issue with more detailed information https://github.com/SharePoint/sp-dev-docs/issues/3306

AntyfrizZz avatar Jan 22 '19 07:01 AntyfrizZz

Gulp trust-dev-cert has fixed this for me in one instance!

ravinleague avatar Mar 01 '19 03:03 ravinleague

Gulp trust-dev-cert worked for me on Chrome. Not tested in other browsers.

JeanBarros avatar Dec 27 '19 14:12 JeanBarros

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 12:01 msft-github-bot