Skip to content

Build Logs
1m 7s

From https://github.com/cpinitiative/usaco-guide
* branch HEAD -> FETCH_HEAD
error "gatsby-node.js" threw an error while running the onCreateNode lifecycle:
module id does not show up in ordering: undefined, path: undefined
> 1 | !function(e,t,n,r,i){var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},o="function"==typeof s[r]&&s[r],a=o.cache||{},u="undefined"!=typeof module&&"function"==typeof module.require&&module.require.bind(module);function l(t,n){if(!a[t]){if(!e[t]){var i="function"==typeof s[r]&&s[r];if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}h.resolve=function(n){var r=e[t][1][n];return null!=r?r:n},h.cache={};var p=a[t]=new l.Module(t);e[t][0].call(p.exports,h,p,p.exports,this)}return a[t].exports;function h(e){var t=h.resolve(e);return!1===t?{}:l(t)}}l.isParcelRequire=!0,l.Module=function(e){this.id=e,this.bundle=l,this.exports={}},l.modules=e,l.cache=a,l.parent=o,l.register=function(t,n){e[t]=[function(e,t){t.exports=n},{}]},Object.defineProperty(l,"root",{get:function(){return s[r]}}),s[r]=l;for(var c=0;c<t.length;c++)l(t[c]);if(n){var p=l(n);"object"==typeof exports&&"undefined"!=typeof module?module.exports=p:"function"==typeof define&&define.amd&&define((function(){return p}))}}({li0r4:[function(e,t,n){var r=e("@parcel/transformer-js/src/esmodule-helpers.js");r.defineInteropFlag(n),r.export(n,"onPostBuild",(()=>o));var i=e("@vercel/gatsby-plugin-vercel-builder/gatsby-node.js"),s=e("./gatsby-node.ts.__vercel_builder_backup__.ts");r.exportAll(s,n);const o=async(e,t)=>{"function"==typeof s.onPostBuild&&await s.onPostBuild(e,t),await i.onPostBuild(e,t)}},{"./gatsby-node.ts.__vercel_builder_backup__.ts":"GMmxJ","@parcel/transformer-js/src/esmodule-helpers.js":"iuhht"}],GMmxJ:[function(e,t,n){var r=e("@parcel/transformer-js/src/esmodule-helpers.js"),i=e("child_process"),s=e("fs"),o=r.interopDefault(s),a=e("path"),u=r.interopDefault(a),l=e("./content/ordering"),c=e("./graphql-types"),p=e("./src/components/markdown/ProblemsList/DivisionList/div_to_probs.json"),h=r.interopDefault(p),d=e("./src/gatsby/create-xdm-node"),m=e("./src/models/problem"),f=e("path").resolve(__dirname,"../..");try{(0,i.execSync)("git fetch --unshallow https://github.com/cpinitiative/usaco-guide.git")}catch(e){console.warn("Git fetch failed. Ignore this if developing or building locally.")}let g=o.default.createWriteStream("ids.log",{flags:"a"});n.onCreateNode=async e=>{const{node:t,actions:n,loadNodeContent:r,createContentDigest:s,createNodeId:o}=e,{createNodeField:a,createNode:u,createParentChildLink:c}=n;if("File"===t.internal.type&&".mdx"===t.ext){const n=await r(t),i=await(0,d.createXdmNode)({id:o(`${t.id} >>> Xdm`),node:t,content:n},e);u(i),c({parent:t,child:i})}const p="application/json"===t.internal.mediaType&&"content"===t.sourceInstanceName&&t.relativePath.endsWith("extraProblems.json");if("application/json"===t.internal.mediaType&&"content"===t.sourceInstanceName&&(t.relativePath.endsWith(".problems.json")||p)){const e=await r(t);let n;try{n=JSON.parse(e)}catch{const e=t.absolutePath?`file ${t.absolutePath}`:`in node ${t.id}`;throw new Error(`Unable to parse JSON: ${e}`)}const i=n.MODULE_ID;if(!i&&!p)throw new Error("Module ID not found in problem JSON file: "+t.absolutePath);if(!p&&!(i in l.moduleIDToSectionMap))throw new Error(".problems.json moduleId does not correspond to module: "+i+", path: "+t.absolutePath);if(Object.keys(n).forEach((e=>{if("MODULE_ID"!==e)try{n[e].forEach((n=>{(0,m.checkInvalidUsacoMetadata)(n),process.env.CI&&g.write(n.uniqueId+"\n"),function(e,n){const r={...e,id:n,children:[],parent:t.id,internal:{contentDigest:s(e),type:"ProblemInfo"}};u(r),c({parent:t,child:r})}({...(0,m.getProblemInfo)(n,l),module:i},o(`${t.id} ${e} ${n.uniqueId} >>> ProblemInfo`))}))}catch(t){throw console.error("Failed to create problem info for",n[e]),new Error(t)}})),i){const e=o(`${t.id} >>> ModuleProblemLists`),r={problemLists:Object.keys(n).filter((e=>"MODULE_ID"!==e)).map((e=>({listId:e,problems:n[e].map((e=>({...(0,m.getProblemInfo)(e,l)})))}))),moduleId:i},a={...r,id:e,children:[],parent:t.id,internal:{contentDigest:s(r),type:"Modul
Error: module id does not show up in ordering: undefined, path: undefined
fatal: --unshallow on a complete repository does not make sense
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error: Command "yarn run build" exited with 1