Error loading debug manifest script
Category
[ ] Question [ ] Typo [X] Mistake [ ] Additional article idea
A few days ago when I was trying to load my project using the workbench.aspx in SharePoint Online an alert appeared saying
Error loading debug manifest script. (Error: http://localhost:4321/temp/manifests.js did not call System.register or AMD define. If loading a global module configure the global name via the meta exports property for script injection support. Error loading https://localhost:4321/temp/manifest.js)
Before that everything worked, I was using it daily. My project works fine on localhost, gulp serve throws no errors. I am almost 87% sure that the error has no connection with me updating my code, it just appeared by itself.

I'm having the same issue in IE, Firefox and Chrome. No manner of browser settings seems to make a difference. Clicking "Show all content" in IE, "Disable protection for now" in Firefox and the Shield icon in Chrome have no effect.
Any fix for this please? I'm about to give up.
Perhaps deploying and referencing manifest.js would be a safer and better alternative??
I believe you are running into the issue with gulp serve running https, not http. Try this: First - run against your local server, making sure it is running https Accept the warning about an unsafe certificate on localhost. Make sure things are working correctly against https://localhost:4321 then hit the sharepoint hosted one.
Hi Pat,
The local server is most definitely running under https and I accepted the certificate warning.
Anything else I should try?
Regards,
Paul
On Wed, 7 Sep 2016 at 2:51 AM, Pat Miller [email protected] wrote:
I believe you are running into the issue with gulp serve running https, not http. Try this: First - run against your local server, making sure it is running https Accept the warning about an unsafe certificate on localhost. Make sure things are working correctly against https://localhost:4321 then hit the sharepoint hosted one.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/SharePoint/sp-dev-docs/issues/152#issuecomment-245014797, or mute the thread https://github.com/notifications/unsubscribe-auth/AIvrRhtZw-bqplb5b0dRohzC_v2CbLIeks5qnZosgaJpZM4J1Azr .
as per https://github.com/SharePoint/sp-dev-docs/issues/165 installing the certificate as well as accepting the warning seems to fix it. In my case I installed the cert after running the local version in IE and selecting it in the address bar. After that I ran it in Firefox. It complained about a mismatched name but adding it as an exception got it working.
@Panoone - Make sure you accept the cert for both https://localhost:4321/... (i.e. - https://localhost:4321/temp/manifests.js) and for https://<your-machine-name>:4321/... (i.e. - https://<your-machine-name>:4321/temp/manifests.js).
@michaelvperry - Be careful installing that cert. It's distributed by gulp-connect, so if you have it installed on your machine and someone malicious is using the gulp-connect cert on their server, it'll look like a valid cert to your machine.
@iclanton - Thank you, thank you, thank you! After loading both https://
I followed the same process in IE and am much closer to success. However, when adding the web part to the workbench, I'm now seeing "Unable to load web part script resources due to: Error." and it fails to load.

An unworkable resolution to this problem is to navigate away from the page and then back again. The web part then mysteriously renders without error.
After navigating away and back again, does it consistently work (i.e. - can you refresh the page and load your web part without having to do the navigate-away-and-back dance again)?
This is something we're going to improve in the next drop, so issues you're having now will hopefully be temporary.
@iclanton Yes it does, Ian. It's quite bizarre. Looking forward to the updates. This is the platform we've all been dreaming of! 🙌🏼
Btw, is there any way to reference the CSS file containing all the ms- classes so as to get intellisense when developing?
Other than an issue with Edge, these should be resolved.
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