{"id":286,"date":"2020-11-15T16:51:28","date_gmt":"2020-11-15T16:51:28","guid":{"rendered":"http:\/\/tutorials.moedesign.de\/blog\/?p=286"},"modified":"2020-11-15T16:54:04","modified_gmt":"2020-11-15T16:54:04","slug":"spfx-webpart-gulp-error-primordials-is-not-defined","status":"publish","type":"post","link":"http:\/\/tutorials.moedesign.de\/blog\/spfx-webpart-gulp-error-primordials-is-not-defined\/","title":{"rendered":"SPFx Webpart &#8211; Gulp error | Primordials is not defined"},"content":{"rendered":"\n<p>If you get the error <em>primordials is not defined<\/em> while calling a gulp command in command line the following might be the solution.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/tutorials.moedesign.de\/wp-content\/uploads\/2020\/11\/SPFx_gulp_error.jpg\" alt=\"SPFx_gulp_error\" class=\"wp-image-285\" width=\"944\" height=\"298\" srcset=\"http:\/\/tutorials.moedesign.de\/wp-content\/uploads\/2020\/11\/SPFx_gulp_error.jpg 944w, http:\/\/tutorials.moedesign.de\/wp-content\/uploads\/2020\/11\/SPFx_gulp_error-300x95.jpg 300w, http:\/\/tutorials.moedesign.de\/wp-content\/uploads\/2020\/11\/SPFx_gulp_error-768x242.jpg 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption>Gulp error<\/figcaption><\/figure>\n\n\n\n<p>Go to your <em>package.json file<\/em> and in the node resolutions add an element <em>graceful-fs<\/em> with the LTS version in my case it was ^4.2.4. If you have Yarn installed you can now call <em>yarn install<\/em> and the dependencies are updated. When you now run the gulp command again the error could be gone.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you get the error primordials is not defined while calling a gulp command in command line the following might be the solution. Go to your package.json file and in the node resolutions add an element graceful-fs with the LTS version in my case it was ^4.2.4. If you have Yarn installed you can now &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/tutorials.moedesign.de\/blog\/spfx-webpart-gulp-error-primordials-is-not-defined\/\" class=\"more-link\"><span class=\"screen-reader-text\">\u201eSPFx Webpart &#8211; Gulp error | Primordials is not defined\u201c <\/span>weiterlesen<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[58,56,57],"class_list":["post-286","post","type-post","status-publish","format-standard","hentry","category-sharepoint","tag-gulp","tag-sharepoint","tag-spfx"],"_links":{"self":[{"href":"http:\/\/tutorials.moedesign.de\/blog\/wp-json\/wp\/v2\/posts\/286","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/tutorials.moedesign.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/tutorials.moedesign.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/tutorials.moedesign.de\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/tutorials.moedesign.de\/blog\/wp-json\/wp\/v2\/comments?post=286"}],"version-history":[{"count":3,"href":"http:\/\/tutorials.moedesign.de\/blog\/wp-json\/wp\/v2\/posts\/286\/revisions"}],"predecessor-version":[{"id":289,"href":"http:\/\/tutorials.moedesign.de\/blog\/wp-json\/wp\/v2\/posts\/286\/revisions\/289"}],"wp:attachment":[{"href":"http:\/\/tutorials.moedesign.de\/blog\/wp-json\/wp\/v2\/media?parent=286"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/tutorials.moedesign.de\/blog\/wp-json\/wp\/v2\/categories?post=286"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/tutorials.moedesign.de\/blog\/wp-json\/wp\/v2\/tags?post=286"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}