gatsby-uc / gatsby-source-strapi

Gatsby source plugin for building websites using Strapi as a data source
MIT License
354 stars 182 forks source link

error GraphQL Error Unknown field `allStrapiArticle` on type `Query` #36

Closed guyjacks closed 6 years ago

guyjacks commented 6 years ago

Trying to follow this tutorial, but I keep getting the following error

$ gatsby develop
success open and validate gatsby-configs — 0.011 s
success load plugins — 0.451 s
success onPreInit — 0.657 s
success delete html and css files from previous builds — 0.089 s
success initialize cache — 0.035 s
success copy gatsby files — 0.169 s
success onPreBootstrap — 0.007 s
⠁ Starting to fetch data from Strapi (articles)
Starting to fetch data from Strapi (users)
⠄ source and transform nodesFetch Strapi data: 82.829ms
(node:23901) Warning: No such label 'Fetch Strapi data' for console.timeEnd()
Calling "touchNode" with a nodeId is deprecated. Please pass an object containing a nodeId instead: touchNode({ nodeId: 'a-node-id' })
"touchNode" was called by gatsby-source-strapi
Calling "touchNode" with a nodeId is deprecated. Please pass an object containing a nodeId instead: touchNode({ nodeId: 'a-node-id' })
"touchNode" was called by gatsby-source-strapi
Calling "touchNode" with a nodeId is deprecated. Please pass an object containing a nodeId instead: touchNode({ nodeId: 'a-node-id' })
"touchNode" was called by gatsby-source-strapi
The new node didn't pass validation
ValidationError: child "id" fails because ["id" must be a string]
{ title: 'First Article',
  content:
   '# Capillos esse artis quod bubo\r\n\r\n## Gaudia harenam uror dumque matura\r\n\r\nLorem markdownum [agitabitur stare hanc](http://haeret.org/orispallada.html),\r\nilla nata formae *iam pavit*, una quae et hos vero tibia **diluvio** parantem.\r\nVenistis concussae Latiis trepidum paterque gutture. Quaerenti rubescere montis\r\nagebat me non parentibus dixit ut quique, demoliturque partior [fert\r\nipse](http://www.dum-cunctis.org/).\r\n\r\n    if (logic) {\r\n        postscript.publishingSanCarrier.only(jfs_cybercrime_site, 2);\r\n    } else {\r\n        kibibyteIntegrated -= hub(xml, banner_bar + gammaRasterAssociation, hoc(\r\n                38, mysql, nas_web_toolbar));\r\n        page_inkjet = click(debugSignatureVlog);\r\n        reader_web(gbps(memoryDvd, laserNetworkUri), 2 + 547128, rtf);\r\n    }\r\n    if (bus_so(fi_icf_cut, qbe_ict_export) + disk + 1 + adapterThirdQuicktime) {\r\n        regular += kindle_prom_meme - print + controller_minimize.bps_pda_web(\r\n                asciiComputingFlops);\r\n        upnpOop /= dimm_wiki_ddr;\r\n        serpItunesFolder = runtimeMetalByte - 3;\r\n    }\r\n    if (systray_ultra_chip(virtualization - 27, ddlCssJoystick,\r\n            saas_open_file)) {\r\n        rdram_drive *= -1;\r\n    } else {\r\n        frame_dialog_viral.wamp += upCopy - soap_permalink(4, intelligenceBing);\r\n    }\r\n    var disk = net;\r\n    edi_pretest_brouter.toggleWebPlug = error_unit_app;\r\n\r\n## Tulit nostras\r\n\r\nNon nisi contingere es patriam terram; Achivi sanae: nate sui. Templa me exempla\r\nreus aries curvamina flava nec amnes cuncti consumptis corpore est Indigetes\r\nhaec: atria. In suos mollito vestes loquentem nubes spes, libera cum illi\r\ntemperat, regia. Habenti verbis umeris tradit. Dum Nilum: tria aquas sed advena\r\nut sinistra gentes.\r\n\r\n## Remis domus inania famulasque ac iamque umbram\r\n\r\nUsu tam arto post celebrant est caput qui recuset aquis [et\r\nmovere](http://etomnibus.org/). Tempore non veteres illud.\r\n\r\n## Discede tenet medio arcana secum quicquid\r\n\r\nCasus cognosceret voca, cum magis quoque miscet; esse Phoebi rapere crescere\r\nvocem, est manu! Quae loquendi veritus, deque fuit cadit clipeum miseras\r\nperspexerat sensit; conubio frondes tergoris Nox latebris. Erat vosque ilice et\r\ndeserit innixusque ossibus; parvam, accepere eam. Tenues capillos flammae\r\niunctior herbas verba, incurva dixi! Retorsit est orbem quoque demitteret nec\r\ndomus boves vacuas; non neganda falcatus.\r\n\r\n- Magna rapitur iurgia unde\r\n- Et digiti iussit\r\n- Est sum totam sentire iurgia quodcumque licet\r\n\r\nAgitante rapta **circumlitus madida ambo** fratrem oceano temptatis votis\r\nalternare, aequoreo, a rogandos ipsum pericli, largis. Est ratis hoc sed avem\r\nnavalibus visis tradidit; tamen quater prohibebat summa, vocant.\r\n',
  author:
   { id: 1,
     username: 'admin@example.com',
     email: 'admin@example.com',
     provider: 'local',
     confirmed: true,
     blocked: null,
     role: 1 },
  created_at: '2018-11-16T17:46:28.701Z',
  updated_at: '2018-11-16T17:51:36.593Z',
  image:
   { id: 1,
     name: 'star_wars_clone_wars-806.jpg',
     hash: 'd7250094524444df8baa1d963ebb81e7',
     sha256: 'wh73T8c2eJHUcdXH-HP1_ZAjQ-keqTl6iREqwjiauMk',
     ext: '.jpg',
     mime: 'image/jpeg',
     size: '143.40',
     url: '/uploads/d7250094524444df8baa1d963ebb81e7.jpg',
     provider: 'local',
     created_at: '2018-11-16T17:46:28.759Z',
     updated_at: '2018-11-16T17:46:28.835Z' },
  image___NODE:
   '/Users/guyjacks/projects/practice/headless_cms/strapi/gatsby-strapi-tutorial/blog/.cache/gatsby-source-filesystem/0b61d06fb9048836bc04c2e474b6a303.jpg absPath of file',
  strapiId: 1,
  id: 1,
  parent: '__SOURCE__',
  children: [],
  internal:
   { type: 'StrapiArticle',
     contentDigest: 'a957506b0506a0448b8e8973eda75410',
     owner: 'gatsby-source-strapi' } }
The new node didn't pass validation
ValidationError: child "id" fails because ["id" must be a string]
{ title: 'Second Article',
  content:
   '# Tollens Scythiae et cumque Peleus corpore modo\r\n\r\n## In sibi rabiemque tergum pennisque\r\n\r\nLorem markdownum deum annos: per misit inmitis religatam, verba cervus nititur\r\niubar reparata timidum cladis [umida](http://illahaec.org/ut-victima.html) ruit.\r\nSustineat omnes nympham *ad serpentis clara* Canentem spreta patriam *et illa*.\r\nIniectam ut [et quod lege](http://noviremovebitur.com/) inserit everterit\r\npudicam, **diu Athon rogat** gemmantia mei silvasque Pittheia\r\n[promissaque](http://pater.com/in-caput)! Cum Polydorus: hoc repetita venenata\r\nremos, trium et! Ille vicit arvis oculisque tamen pugnantem bitumine rerum,\r\nprocul, fortes [genae](http://relevat.io/), cui.\r\n\r\n> Cineres qui singula opus misit, rustica mearum corpora ignescere ferrum me\r\n> luctus addidit conamine, sine stamina dextra talibus. Ferrum motibus\r\n> perlucentes, felix, ubi diremit, his in habenas semper. In pars caeleste\r\n> pietas, laboribus posuere sede undis excusantia: celer secus dum; nomenque\r\n> parente, licet!\r\n\r\n## Patri non simulacraque percussae crescit\r\n\r\nNisi timidusque fata. Cecidere honorati, incepti!\r\n\r\n    var plugDosKernel = json + null;\r\n    if (dock_nvram.server_teraflops(baud_hard_page + memory_heat_floppy)) {\r\n        scareware_isa_controller.throughput_print +=\r\n                cybersquatter.postUdpProgressive(nntp_raw_golden);\r\n        flashDriveHandle = dvdTerminalControl;\r\n    } else {\r\n        file_wordart_tweet = queueMemory + vdslUri;\r\n        bootBiometrics += 4;\r\n        pack_tablet_sip(cpm, storage);\r\n    }\r\n    if (dual_vga) {\r\n        e_system -= miniError(gateway_skyscraper_blu, 723134);\r\n        emulation_software_primary(linkedinServiceScreenshot);\r\n    }\r\n    macSlaBotnet.diskSidebar = denial_thunderbolt(adapter, mysql + boolean_gps,\r\n            camera - gif + office_big);\r\n\r\n## Ignorantia rogat relictis fueram conataque circa\r\n\r\nAliquos mortis; Asopidos portasque videri squamas interque quem, arae eadem, tu.\r\nAeolon de *nisi* et tanti inscribenda *nisi*. Cum unde per toro producit, **ad**\r\nlocuti ei et. Cupidi igitur latitantia ait tum, esse voti thalamoque postquam\r\ncensus calathis natura, ostendit opus qualis.\r\n\r\n    animated *= systemGigabit;\r\n    var boot_platform = virtual.asp(commandAsciiEcc.dataPerl(activeWhiteSram,\r\n            opacity, 754353 + petabyte_bar_perl), endCgi(dvd_right,\r\n            systemKindle));\r\n    modeMemoryLaptop.pmuFrameBoot(link_boot, browserSync + loginWave);\r\n\r\n## In hic ignara qualescumque hinc et duobus\r\n\r\nSilvae ilia: tempus canis, illa aequoris; modo morte intremuit adstitit bulla.\r\nAnimis di horrenda annum, neu bimari procul quoque saevis!\r\n\r\nSimul postibus nymphe *quod restant* saepe et dixit opemque. Doctior hospitis:\r\ncapi iam educere iter querella et tibi. Quam aquas Anaphen visumque viri\r\n[vitiantes](http://www.rore-dubiis.io/temeraria) pugnae, ab verba **honore**\r\ngermana et tamen et domini Hesperidas Cyclopum caeli. Ulixem si noctis pande\r\nstipulae lacerto micantes; et quo nec ille? Trunci dum quo, ille humano Penthea\r\nposuisse sanguine prodit?\r\n\r\nPonitur species dempsistis colubris dolentem tendere inque esse ut possem inque.\r\nTot illis mea curru pectora facta segetes ut *ardor te* hunc malus ipsis, suos.\r\nSilet *humum* legit excepto sorores aeratas et patent septemfluus iamque ipsa\r\nqui in tectum armorum levi, ad! Posse non arte domum, a cognita defossos et quae\r\nCorythi, de pateres crine.\r\n',
  author:
   { id: 1,
     username: 'admin@example.com',
     email: 'admin@example.com',
     provider: 'local',
     confirmed: true,
     blocked: null,
     role: 1 },
  created_at: '2018-11-16T17:46:58.895Z',
  updated_at: '2018-11-16T17:51:41.781Z',
  image:
   { id: 2,
     name: 'Star-Wars-Heavy-Metal-Logo-Wallpaper.jpg',
     hash: '0b9d1f9655b14b4fa9582e7365c32109',
     sha256: 'PGEWYHpOXftbvlKeXR72P6wzZA-x6uh8pxEH5zKli_Q',
     ext: '.jpg',
     mime: 'image/jpeg',
     size: '280.95',
     url: '/uploads/0b9d1f9655b14b4fa9582e7365c32109.jpg',
     provider: 'local',
     created_at: '2018-11-16T17:46:58.976Z',
     updated_at: '2018-11-16T17:46:59.033Z' },
  image___NODE:
   '/Users/guyjacks/projects/practice/headless_cms/strapi/gatsby-strapi-tutorial/blog/.cache/gatsby-source-filesystem/756a91da97eb822cf1d93219803dbf49.jpg absPath of file',
  strapiId: 2,
  id: 2,
  parent: '__SOURCE__',
  children: [],
  internal:
   { type: 'StrapiArticle',
     contentDigest: 'ee66cce6fedfc0a965136968c1a18d77',
     owner: 'gatsby-source-strapi' } }
The new node didn't pass validation
ValidationError: child "id" fails because ["id" must be a string]
{ title: 'Third Article',
  content:
   '# Tibi haustus procis\r\n\r\n## Molliet pinus fertur nec quisque sociis atria\r\n\r\nLorem markdownum aliter ortus glans spectantem. Ignes cum erat meditataque,\r\nensis sed voluptas interea sub vicinia a talia, me! Molle certe sine vocandus:\r\nsuo terga amens praebentem tibi, pro traxit Cybeleius [laudare leones\r\nresolvite](http://unde-latius.net/dixit.php) huic. Increvisse venit parenti in\r\nfamulis, manu optare et, *me tamen quaque*! Terrae ingemuit quam creatam aquas.\r\n\r\n> Minister per sensere gerens remis novus. Suo vires suos nec.\r\n\r\n## Contende iam hospite puppimque animo suos quae\r\n\r\nDeduxit reclusi, visus, circuitu aetheris mihi glaebis sed invicti telum in\r\nquattuor, **questus**. Incaluisse paruit: in columbam Arethusa [adparuit\r\nerectos](http://subducerefalleret.io/) avem! Nati aegro caudam harenosae colla\r\niuvenalis alter mendacibus, Ceycis vocant mittitur temperat. Inferius nostra\r\nportat tua repperit hausit mortis praesagia reddite. Nunc undas Almo *simplex*.\r\n\r\n    var whiteDrive = platformUnfriend.windowsSinkDigital(2, 26 + trimCompact);\r\n    if (megabit_skyscraper_soft > boolean_vlog_topology) {\r\n        cps(prompt(name_dvr), tutorial, -2 + ad);\r\n        desktop_botnet = toggle(microcomputerPlayDomain) - sms_jquery +\r\n                power_word_contextual;\r\n        malware_prom = parityDesktop(safe - type);\r\n    } else {\r\n        timeSyntaxSnippet *= online - gigabit_frame;\r\n        client_nic_ethernet(ultraVfatFlood + 1, ad + -4, 3);\r\n    }\r\n    var pop_bmp = aixTouchscreen.integerDisplayRuntime.signatureBarCompression(\r\n            fsb_gigabyte_monochrome - drive, scarewareData, ftp + virus_file +\r\n            file_bar_ripcording(tag));\r\n    if (nicSystemCommand > 87 + name + tape) {\r\n        dvd += logic_checksum_pack - brouterDataGamma / bitrate_icmp_hypermedia;\r\n    }\r\n\r\n## Minyae est datur digitis et capitis cutem\r\n\r\nMe credens favilla facitote misit quam calamo: Parnasia haec Bacchus quoniam\r\nqua: dolore. Visae ipsos, nox Aenea despecta *ipsa* quidquid, quondam acta\r\nAchille abstulerit carmina.\r\n\r\n1. Achille odoribus altera fugientem Iunonem dirae navita\r\n2. Maxima quae roger Arcas onus priscis\r\n3. Hic decipit umor nec\r\n4. Dies tabe non tantus quae nisi agricolam\r\n5. Iam graves viribus reverti inhaerebat Palati se\r\n6. Evomit fidem\r\n\r\n## Arvaque admota quoque\r\n\r\nTegat caede Lesbon telis ab pariter forma protinus merumque meae. Femina cardine\r\ndoque: haec modo fuit ore *possis* palmas, undas, exta. Eodem quod **prius**\r\nPolydegmona, abdita sumpserat: o non Corythi: novissima et lateri. Pestis fieri,\r\nmansura sacri faciam adstitit campis, ipse.\r\n\r\n    if (readVirtualization != autoresponderMac) {\r\n        thumbnailPlaySmishing = spider_hdd;\r\n    } else {\r\n        orientation -= volume_ripcording_microcomputer + loadRefresh;\r\n        password(antivirusOpenDisk);\r\n        ide_interface_handle += interfaceIo(rteIndex(correction_blog), 68);\r\n    }\r\n    var dll = lifoSinkKey(intelligenceCompatible.capacity_gif_frame(\r\n            carrierWavelength, voip_burn));\r\n    var troll = keyMultiCaps + api;\r\n\r\nEt regna mihi Achivis nunc Lycabas et Procne obvius, illuc tutius novae\r\nedidicitque. Limnaee primis inops?\r\n',
  author:
   { id: 1,
     username: 'admin@example.com',
     email: 'admin@example.com',
     provider: 'local',
     confirmed: true,
     blocked: null,
     role: 1 },
  created_at: '2018-11-16T17:47:25.800Z',
  updated_at: '2018-11-16T17:51:45.961Z',
  image:
   { id: 3,
     name: 'star-wars-the-force-awakens-wide-poster.jpg',
     hash: '294f8d1f02f84f5d92267d973f4e3c7d',
     sha256: 'V3S3_8EyKqdeLb1ZPpNc8ugfpP-Io3BJTKMaSH+TG24',
     ext: '.jpg',
     mime: 'image/jpeg',
     size: '539.39',
     url: '/uploads/294f8d1f02f84f5d92267d973f4e3c7d.jpg',
     provider: 'local',
     created_at: '2018-11-16T17:47:25.846Z',
     updated_at: '2018-11-16T17:47:25.902Z' },
  image___NODE:
   '/Users/guyjacks/projects/practice/headless_cms/strapi/gatsby-strapi-tutorial/blog/.cache/gatsby-source-filesystem/4404553d4d228d06ca6d089da105d1b6.jpg absPath of file',
  strapiId: 3,
  id: 3,
  parent: '__SOURCE__',
  children: [],
  internal:
   { type: 'StrapiArticle',
     contentDigest: '12213ced6de8882c6d5e817de30f9fa4',
     owner: 'gatsby-source-strapi' } }
The new node didn't pass validation
ValidationError: child "id" fails because ["id" must be a string]
{ username: 'admin@example.com',
  email: 'admin@example.com',
  provider: 'local',
  confirmed: true,
  blocked: null,
  role:
   { id: 1,
     name: 'Administrator',
     description: 'These users have all access in the project.',
     type: 'root' },
  articles:
   [ { id: 1,
       title: 'First Article',
       content:
        '# Capillos esse artis quod bubo\r\n\r\n## Gaudia harenam uror dumque matura\r\n\r\nLorem markdownum [agitabitur stare hanc](http://haeret.org/orispallada.html),\r\nilla nata formae *iam pavit*, una quae et hos vero tibia **diluvio** parantem.\r\nVenistis concussae Latiis trepidum paterque gutture. Quaerenti rubescere montis\r\nagebat me non parentibus dixit ut quique, demoliturque partior [fert\r\nipse](http://www.dum-cunctis.org/).\r\n\r\n    if (logic) {\r\n        postscript.publishingSanCarrier.only(jfs_cybercrime_site, 2);\r\n    } else {\r\n        kibibyteIntegrated -= hub(xml, banner_bar + gammaRasterAssociation, hoc(\r\n                38, mysql, nas_web_toolbar));\r\n        page_inkjet = click(debugSignatureVlog);\r\n        reader_web(gbps(memoryDvd, laserNetworkUri), 2 + 547128, rtf);\r\n    }\r\n    if (bus_so(fi_icf_cut, qbe_ict_export) + disk + 1 + adapterThirdQuicktime) {\r\n        regular += kindle_prom_meme - print + controller_minimize.bps_pda_web(\r\n                asciiComputingFlops);\r\n        upnpOop /= dimm_wiki_ddr;\r\n        serpItunesFolder = runtimeMetalByte - 3;\r\n    }\r\n    if (systray_ultra_chip(virtualization - 27, ddlCssJoystick,\r\n            saas_open_file)) {\r\n        rdram_drive *= -1;\r\n    } else {\r\n        frame_dialog_viral.wamp += upCopy - soap_permalink(4, intelligenceBing);\r\n    }\r\n    var disk = net;\r\n    edi_pretest_brouter.toggleWebPlug = error_unit_app;\r\n\r\n## Tulit nostras\r\n\r\nNon nisi contingere es patriam terram; Achivi sanae: nate sui. Templa me exempla\r\nreus aries curvamina flava nec amnes cuncti consumptis corpore est Indigetes\r\nhaec: atria. In suos mollito vestes loquentem nubes spes, libera cum illi\r\ntemperat, regia. Habenti verbis umeris tradit. Dum Nilum: tria aquas sed advena\r\nut sinistra gentes.\r\n\r\n## Remis domus inania famulasque ac iamque umbram\r\n\r\nUsu tam arto post celebrant est caput qui recuset aquis [et\r\nmovere](http://etomnibus.org/). Tempore non veteres illud.\r\n\r\n## Discede tenet medio arcana secum quicquid\r\n\r\nCasus cognosceret voca, cum magis quoque miscet; esse Phoebi rapere crescere\r\nvocem, est manu! Quae loquendi veritus, deque fuit cadit clipeum miseras\r\nperspexerat sensit; conubio frondes tergoris Nox latebris. Erat vosque ilice et\r\ndeserit innixusque ossibus; parvam, accepere eam. Tenues capillos flammae\r\niunctior herbas verba, incurva dixi! Retorsit est orbem quoque demitteret nec\r\ndomus boves vacuas; non neganda falcatus.\r\n\r\n- Magna rapitur iurgia unde\r\n- Et digiti iussit\r\n- Est sum totam sentire iurgia quodcumque licet\r\n\r\nAgitante rapta **circumlitus madida ambo** fratrem oceano temptatis votis\r\nalternare, aequoreo, a rogandos ipsum pericli, largis. Est ratis hoc sed avem\r\nnavalibus visis tradidit; tamen quater prohibebat summa, vocant.\r\n',
       author: 1,
       created_at: '2018-11-16T17:46:28.701Z',
       updated_at: '2018-11-16T17:51:36.593Z' },
     { id: 2,
       title: 'Second Article',
       content:
        '# Tollens Scythiae et cumque Peleus corpore modo\r\n\r\n## In sibi rabiemque tergum pennisque\r\n\r\nLorem markdownum deum annos: per misit inmitis religatam, verba cervus nititur\r\niubar reparata timidum cladis [umida](http://illahaec.org/ut-victima.html) ruit.\r\nSustineat omnes nympham *ad serpentis clara* Canentem spreta patriam *et illa*.\r\nIniectam ut [et quod lege](http://noviremovebitur.com/) inserit everterit\r\npudicam, **diu Athon rogat** gemmantia mei silvasque Pittheia\r\n[promissaque](http://pater.com/in-caput)! Cum Polydorus: hoc repetita venenata\r\nremos, trium et! Ille vicit arvis oculisque tamen pugnantem bitumine rerum,\r\nprocul, fortes [genae](http://relevat.io/), cui.\r\n\r\n> Cineres qui singula opus misit, rustica mearum corpora ignescere ferrum me\r\n> luctus addidit conamine, sine stamina dextra talibus. Ferrum motibus\r\n> perlucentes, felix, ubi diremit, his in habenas semper. In pars caeleste\r\n> pietas, laboribus posuere sede undis excusantia: celer secus dum; nomenque\r\n> parente, licet!\r\n\r\n## Patri non simulacraque percussae crescit\r\n\r\nNisi timidusque fata. Cecidere honorati, incepti!\r\n\r\n    var plugDosKernel = json + null;\r\n    if (dock_nvram.server_teraflops(baud_hard_page + memory_heat_floppy)) {\r\n        scareware_isa_controller.throughput_print +=\r\n                cybersquatter.postUdpProgressive(nntp_raw_golden);\r\n        flashDriveHandle = dvdTerminalControl;\r\n    } else {\r\n        file_wordart_tweet = queueMemory + vdslUri;\r\n        bootBiometrics += 4;\r\n        pack_tablet_sip(cpm, storage);\r\n    }\r\n    if (dual_vga) {\r\n        e_system -= miniError(gateway_skyscraper_blu, 723134);\r\n        emulation_software_primary(linkedinServiceScreenshot);\r\n    }\r\n    macSlaBotnet.diskSidebar = denial_thunderbolt(adapter, mysql + boolean_gps,\r\n            camera - gif + office_big);\r\n\r\n## Ignorantia rogat relictis fueram conataque circa\r\n\r\nAliquos mortis; Asopidos portasque videri squamas interque quem, arae eadem, tu.\r\nAeolon de *nisi* et tanti inscribenda *nisi*. Cum unde per toro producit, **ad**\r\nlocuti ei et. Cupidi igitur latitantia ait tum, esse voti thalamoque postquam\r\ncensus calathis natura, ostendit opus qualis.\r\n\r\n    animated *= systemGigabit;\r\n    var boot_platform = virtual.asp(commandAsciiEcc.dataPerl(activeWhiteSram,\r\n            opacity, 754353 + petabyte_bar_perl), endCgi(dvd_right,\r\n            systemKindle));\r\n    modeMemoryLaptop.pmuFrameBoot(link_boot, browserSync + loginWave);\r\n\r\n## In hic ignara qualescumque hinc et duobus\r\n\r\nSilvae ilia: tempus canis, illa aequoris; modo morte intremuit adstitit bulla.\r\nAnimis di horrenda annum, neu bimari procul quoque saevis!\r\n\r\nSimul postibus nymphe *quod restant* saepe et dixit opemque. Doctior hospitis:\r\ncapi iam educere iter querella et tibi. Quam aquas Anaphen visumque viri\r\n[vitiantes](http://www.rore-dubiis.io/temeraria) pugnae, ab verba **honore**\r\ngermana et tamen et domini Hesperidas Cyclopum caeli. Ulixem si noctis pande\r\nstipulae lacerto micantes; et quo nec ille? Trunci dum quo, ille humano Penthea\r\nposuisse sanguine prodit?\r\n\r\nPonitur species dempsistis colubris dolentem tendere inque esse ut possem inque.\r\nTot illis mea curru pectora facta segetes ut *ardor te* hunc malus ipsis, suos.\r\nSilet *humum* legit excepto sorores aeratas et patent septemfluus iamque ipsa\r\nqui in tectum armorum levi, ad! Posse non arte domum, a cognita defossos et quae\r\nCorythi, de pateres crine.\r\n',
       author: 1,
       created_at: '2018-11-16T17:46:58.895Z',
       updated_at: '2018-11-16T17:51:41.781Z' },
     { id: 3,
       title: 'Third Article',
       content:
        '# Tibi haustus procis\r\n\r\n## Molliet pinus fertur nec quisque sociis atria\r\n\r\nLorem markdownum aliter ortus glans spectantem. Ignes cum erat meditataque,\r\nensis sed voluptas interea sub vicinia a talia, me! Molle certe sine vocandus:\r\nsuo terga amens praebentem tibi, pro traxit Cybeleius [laudare leones\r\nresolvite](http://unde-latius.net/dixit.php) huic. Increvisse venit parenti in\r\nfamulis, manu optare et, *me tamen quaque*! Terrae ingemuit quam creatam aquas.\r\n\r\n> Minister per sensere gerens remis novus. Suo vires suos nec.\r\n\r\n## Contende iam hospite puppimque animo suos quae\r\n\r\nDeduxit reclusi, visus, circuitu aetheris mihi glaebis sed invicti telum in\r\nquattuor, **questus**. Incaluisse paruit: in columbam Arethusa [adparuit\r\nerectos](http://subducerefalleret.io/) avem! Nati aegro caudam harenosae colla\r\niuvenalis alter mendacibus, Ceycis vocant mittitur temperat. Inferius nostra\r\nportat tua repperit hausit mortis praesagia reddite. Nunc undas Almo *simplex*.\r\n\r\n    var whiteDrive = platformUnfriend.windowsSinkDigital(2, 26 + trimCompact);\r\n    if (megabit_skyscraper_soft > boolean_vlog_topology) {\r\n        cps(prompt(name_dvr), tutorial, -2 + ad);\r\n        desktop_botnet = toggle(microcomputerPlayDomain) - sms_jquery +\r\n                power_word_contextual;\r\n        malware_prom = parityDesktop(safe - type);\r\n    } else {\r\n        timeSyntaxSnippet *= online - gigabit_frame;\r\n        client_nic_ethernet(ultraVfatFlood + 1, ad + -4, 3);\r\n    }\r\n    var pop_bmp = aixTouchscreen.integerDisplayRuntime.signatureBarCompression(\r\n            fsb_gigabyte_monochrome - drive, scarewareData, ftp + virus_file +\r\n            file_bar_ripcording(tag));\r\n    if (nicSystemCommand > 87 + name + tape) {\r\n        dvd += logic_checksum_pack - brouterDataGamma / bitrate_icmp_hypermedia;\r\n    }\r\n\r\n## Minyae est datur digitis et capitis cutem\r\n\r\nMe credens favilla facitote misit quam calamo: Parnasia haec Bacchus quoniam\r\nqua: dolore. Visae ipsos, nox Aenea despecta *ipsa* quidquid, quondam acta\r\nAchille abstulerit carmina.\r\n\r\n1. Achille odoribus altera fugientem Iunonem dirae navita\r\n2. Maxima quae roger Arcas onus priscis\r\n3. Hic decipit umor nec\r\n4. Dies tabe non tantus quae nisi agricolam\r\n5. Iam graves viribus reverti inhaerebat Palati se\r\n6. Evomit fidem\r\n\r\n## Arvaque admota quoque\r\n\r\nTegat caede Lesbon telis ab pariter forma protinus merumque meae. Femina cardine\r\ndoque: haec modo fuit ore *possis* palmas, undas, exta. Eodem quod **prius**\r\nPolydegmona, abdita sumpserat: o non Corythi: novissima et lateri. Pestis fieri,\r\nmansura sacri faciam adstitit campis, ipse.\r\n\r\n    if (readVirtualization != autoresponderMac) {\r\n        thumbnailPlaySmishing = spider_hdd;\r\n    } else {\r\n        orientation -= volume_ripcording_microcomputer + loadRefresh;\r\n        password(antivirusOpenDisk);\r\n        ide_interface_handle += interfaceIo(rteIndex(correction_blog), 68);\r\n    }\r\n    var dll = lifoSinkKey(intelligenceCompatible.capacity_gif_frame(\r\n            carrierWavelength, voip_burn));\r\n    var troll = keyMultiCaps + api;\r\n\r\nEt regna mihi Achivis nunc Lycabas et Procne obvius, illuc tutius novae\r\nedidicitque. Limnaee primis inops?\r\n',
       author: 1,
       created_at: '2018-11-16T17:47:25.800Z',
       updated_at: '2018-11-16T17:51:45.961Z' } ],
  strapiId: 1,
  id: 1,
  parent: '__SOURCE__',
  children: [],
  internal:
   { type: 'StrapiUser',
     contentDigest: '6bd3c3c42b27ce140c62db6fb37ddecb',
     owner: 'gatsby-source-strapi' } }
warning The gatsby-source-strapi plugin has generated no Gatsby nodes. Do you need it?
success source and transform nodes — 0.173 s
success building schema — 0.234 s
success createPages — 0.001 s
success createPagesStatefully — 0.037 s
success onPreExtractQueries — 0.018 s
success update schema — 0.146 s
error GraphQL Error Unknown field `allStrapiArticle` on type `Query`

  file: /Users/guyjacks/projects/practice/headless_cms/strapi/gatsby-strapi-tutorial/blog/src/pages/index.js

   1 |
   2 | {
>  3 |     allStrapiArticle {
     |     ^
   4 |       edges {
   5 |         node {
   6 |           id
   7 |           title
   8 |           content
   9 |         }
  10 |       }
  11 |     }
  12 |   }
  13 |

success extract queries from components — 0.102 s
⠁ (node:23901) DeprecationWarning: Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.
success run graphql queries — 0.024 s — 5/5 231.40 queries/second
success write out page data — 0.005 s
success write out redirect data — 0.003 s
⠄ onPostBootstrapdone generating icons for manifest
success onPostBootstrap — 0.167 s

info bootstrap finished - 4.385 s

 ERROR  Failed to compile with 1 errors                                                                                                                          1:41:39 PM

 error  in ./src/pages/index.js

Module Error (from ./node_modules/eslint-loader/index.js):

/Users/guyjacks/projects/practice/headless_cms/strapi/gatsby-strapi-tutorial/blog/src/pages/index.js
  28:5  error  Cannot query field "allStrapiArticle" on type "Query"  graphql/template-strings

✖ 1 problem (1 error, 0 warnings)

 @ ./.cache/sync-requires.js 15:50-161
 @ ./.cache/app.js
 @ multi (webpack)-hot-middleware/client.js?path=/__webpack_hmr&reload=true&overlay=false ./.cache/app

✖ 「wdm」:
ERROR in ./src/pages/index.js
Module Error (from ./node_modules/eslint-loader/index.js):

/Users/guyjacks/projects/practice/headless_cms/strapi/gatsby-strapi-tutorial/blog/src/pages/index.js
  28:5  error  Cannot query field "allStrapiArticle" on type "Query"  graphql/template-strings

✖ 1 problem (1 error, 0 warnings)

 @ ./.cache/sync-requires.js 15:50-161
 @ ./.cache/app.js
 @ multi (webpack)-hot-middleware/client.js?path=/__webpack_hmr&reload=true&overlay=false ./.cache/app
ℹ 「wdm」: Failed to compile.
 WAIT  Compiling...                                                                                                                                              1:41:39 PM

ℹ 「wdm」: Compiling...
 ERROR  Failed to compile with 1 errors                                                                                                                          1:41:40 PM

 error  in ./src/pages/index.js

Module Error (from ./node_modules/eslint-loader/index.js):

/Users/guyjacks/projects/practice/headless_cms/strapi/gatsby-strapi-tutorial/blog/src/pages/index.js
  28:5  error  Cannot query field "allStrapiArticle" on type "Query"  graphql/template-strings

✖ 1 problem (1 error, 0 warnings)

 @ ./.cache/sync-requires.js 15:50-161
 @ ./.cache/app.js
 @ multi (webpack)-hot-middleware/client.js?path=/__webpack_hmr&reload=true&overlay=false ./.cache/app

✖ 「wdm」:
ERROR in ./src/pages/index.js
Module Error (from ./node_modules/eslint-loader/index.js):

/Users/guyjacks/projects/practice/headless_cms/strapi/gatsby-strapi-tutorial/blog/src/pages/index.js
  28:5  error  Cannot query field "allStrapiArticle" on type "Query"  graphql/template-strings

✖ 1 problem (1 error, 0 warnings)

 @ ./.cache/sync-requires.js 15:50-161
 @ ./.cache/app.js
 @ multi (webpack)-hot-middleware/client.js?path=/__webpack_hmr&reload=true&overlay=false ./.cache/app
ℹ 「wdm」: Failed to compile.
guyjacks commented 6 years ago

I found this issue on the Gatsby repo: https://github.com/strapi/gatsby-source-strapi/issues/6

lauriejim commented 6 years ago

https://github.com/strapi/strapi/issues/1911#issuecomment-424965126

clabmb commented 5 years ago

I am having this error error Cannot query field "allStrapiArticle" on type "Query" graphql/template-strings

where should I add the scripts? I added to gatsby-source-strapi/package.json and the error still exisit.

Add to package.json scripts

"postinstall": "ruby -pi -e \"gsub(/^(\s+)return clean\(item\);/,'\1item.id=item.id.toString();return clean(item);')\" ./node_modules/gatsby-source-strapi/fetch.js"

clabmb commented 5 years ago

I just fix the problem... I was so stupid that i forgot to start the strapi service....

grpecunia commented 4 years ago

I just ran into a similar issue with Strapi and Gatsby. My issue was not solved with restarting Strapi. It had to do with User roles and permissions. The link to the issue bellow helped out:

https://github.com/strapi/strapi/issues/3385#issuecomment-499181665

image

Hope this helps!