{"id":2225,"date":"2022-12-30T15:37:21","date_gmt":"2022-12-30T14:37:21","guid":{"rendered":"https:\/\/blog.kodono.info\/wordpress\/?p=2225"},"modified":"2022-12-30T15:37:21","modified_gmt":"2022-12-30T14:37:21","slug":"spfx-error-no-development-certificate-found-generate-a-new-certificate-manually-or-set-the-cangeneratenewcertificate-parameter-to-true-when-calling-ensurecertificateasync","status":"publish","type":"post","link":"https:\/\/blog.kodono.info\/wordpress\/2022\/12\/30\/spfx-error-no-development-certificate-found-generate-a-new-certificate-manually-or-set-the-cangeneratenewcertificate-parameter-to-true-when-calling-ensurecertificateasync\/","title":{"rendered":"spfx error: No development certificate found. Generate a new certificate manually, or set the `canGenerateNewCertificate` parameter to `true` when calling `ensureCertificateAsync`"},"content":{"rendered":"<p>When using the command <code>gulp serve<\/code>, you could receive the below error:<\/p>\n<blockquote><p>No development certificate found. Generate a new certificate manually, or set the `canGenerateNewCertificate` parameter to `true` when calling `ensureCertificateAsync`<\/p><\/blockquote>\n<p>To resolve, you can type <code>gulp trust-dev-cert<\/code>.<\/p>\n<p><a href=\"https:\/\/blog.kodono.info\/wordpress\/wp-content\/uploads\/2022\/12\/spfx_error.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.kodono.info\/wordpress\/wp-content\/uploads\/2022\/12\/spfx_error-1024x332.png\" alt=\"\" width=\"1024\" height=\"332\" class=\"aligncenter size-large wp-image-2226\" srcset=\"https:\/\/blog.kodono.info\/wordpress\/wp-content\/uploads\/2022\/12\/spfx_error-1024x332.png 1024w, https:\/\/blog.kodono.info\/wordpress\/wp-content\/uploads\/2022\/12\/spfx_error-300x97.png 300w, https:\/\/blog.kodono.info\/wordpress\/wp-content\/uploads\/2022\/12\/spfx_error-768x249.png 768w, https:\/\/blog.kodono.info\/wordpress\/wp-content\/uploads\/2022\/12\/spfx_error-1536x499.png 1536w, https:\/\/blog.kodono.info\/wordpress\/wp-content\/uploads\/2022\/12\/spfx_error.png 1891w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When using the command gulp serve, you could receive the below error: No development certificate found. Generate a new certificate manually, or set the `canGenerateNewCertificate` parameter to `true` when calling `ensureCertificateAsync` To resolve, you can type gulp trust-dev-cert.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","hide_page_title":"","footnotes":""},"categories":[170,11,33],"tags":[171,151,158],"class_list":["post-2225","post","type-post","status-publish","format-standard","hentry","category-english","category-niveau-debutant","category-programmation","tag-anglais","tag-niveau-debutant","tag-programmation"],"_links":{"self":[{"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/posts\/2225","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/comments?post=2225"}],"version-history":[{"count":1,"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/posts\/2225\/revisions"}],"predecessor-version":[{"id":2227,"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/posts\/2225\/revisions\/2227"}],"wp:attachment":[{"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/media?parent=2225"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/categories?post=2225"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/tags?post=2225"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}