Closed duffn closed 1 year ago
I'm trying to run this with 11ty 2.0.0-beta.2 as in the current package.json. https://github.com/11ty/11ty-website/blob/d54f2638c2f4925f5bd8bf18e5137d83245a6ba8/package.json#L45
package.json
Following the README and simply running npm install and npx @11ty/eleventy --serve results in this error.
npm install
npx @11ty/eleventy --serve
[11ty] Problem writing Eleventy templates: [11ty] Cannot read properties of undefined (reading '0') (via TypeError) Eleventy:EleventyErrorHandler (error stack): TypeError: Cannot read properties of undefined (reading '0') Eleventy:EleventyErrorHandler at /Users/duffn/code/11ty-website/node_modules/@11ty/eleventy/src/Plugins/Pagination.js:320:61 Eleventy:EleventyErrorHandler at Array.map (<anonymous>) Eleventy:EleventyErrorHandler at Pagination.getPageTemplates (/Users/duffn/code/11ty-website/node_modules/@11ty/eleventy/src/Plugins/Pagination.js:320:41) Eleventy:EleventyErrorHandler at Template.getTemplates (/Users/duffn/code/11ty-website/node_modules/@11ty/eleventy/src/Template.js:705:45) Eleventy:EleventyErrorHandler at TemplateMap.initDependencyMap (/Users/duffn/code/11ty-website/node_modules/@11ty/eleventy/src/TemplateMap.js:410:41) Eleventy:EleventyErrorHandler at process.processTicksAndRejections (node:internal/process/task_queues:95:5) Eleventy:EleventyErrorHandler at async TemplateMap.cache (/Users/duffn/code/11ty-website/node_modules/@11ty/eleventy/src/TemplateMap.js:454:5) Eleventy:EleventyErrorHandler at async TemplateWriter._createTemplateMap (/Users/duffn/code/11ty-website/node_modules/@11ty/eleventy/src/TemplateWriter.js:330:5) Eleventy:EleventyErrorHandler at async TemplateWriter.generateTemplates (/Users/duffn/code/11ty-website/node_modules/@11ty/eleventy/src/TemplateWriter.js:360:5) Eleventy:EleventyErrorHandler at async TemplateWriter.write (/Users/duffn/code/11ty-website/node_modules/@11ty/eleventy/src/TemplateWriter.js:407:23) +0ms
As it's quite large, I've included the full debug output in this gist: https://gist.github.com/duffn/2bc61ef8c82f670b2c1fbee9a8a5acaf
Am I missing a step to run this locally?
Ah yeah! You need to run npm run get-new-data at least once! I’ve added it to the README
npm run get-new-data
I'm trying to run this with 11ty 2.0.0-beta.2 as in the current
package.json
. https://github.com/11ty/11ty-website/blob/d54f2638c2f4925f5bd8bf18e5137d83245a6ba8/package.json#L45Following the README and simply running
npm install
andnpx @11ty/eleventy --serve
results in this error.As it's quite large, I've included the full debug output in this gist: https://gist.github.com/duffn/2bc61ef8c82f670b2c1fbee9a8a5acaf
Am I missing a step to run this locally?