Preview error related to index.md #1063
Replies: 5 comments 1 reply
-
|
Hi @MultimedialitySummerSchool - reading this error message, it appears there is an issue with your |
Beta Was this translation helpful? Give feedback.
-
|
One "best practice" that I like to recommend is only making a handful of changes before previewing. That will help narrow down the particular change that may have broken the preview. The more work you do before previewing, the harder it can be to pinpoint the breaking point. Preview often is my advice. |
Beta Was this translation helpful? Give feedback.
-
|
@MultimedialitySummerSchool Thanks for doing such a deep dive into the code. We really appreciate that level of detail. That said, sometimes the Terminal output provides more information than is necessary to diagnose the issue and turns out to be a distraction. It's possible that the inconsistency in file names is indicative of a larger issue, but we should start troubleshooting at a higher level and rule out other potential causes first. Unfortunately, I am not able to recreate your issue. When I start a new project on rc-33/node 22 and change the title in the I just want to double-check, did you make any changes to the page YAML (see below) in the ---
title: Cover
layout: cover
order: 1
menu: false
toc: false
image: spiral-overlay.png
---If the answers to the above inquiries are no, can you create an organizational account in GitHub, add your repo to it, and add both Greg and me as collaborators? Here is more information: https://docs.github.com/en/organizations/collaborating-with-groups-in-organizations/about-organizations. If I am added as a collaborator, then I can clone (copy) your project and take a look around at what might be breaking the preview. Let me know if that is possible. Otherwise, I suggest hopping on a call and screensharing! |
Beta Was this translation helpful? Give feedback.
-
|
Hi @MultimedialitySummerSchool Thank you for sharing your project repo |
Beta Was this translation helpful? Give feedback.
-
|
Similar to discussion #1058, we chalked this up to permissions errors related to @MultimedialitySummerSchool's system, which is why I was able to preview without an issue. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Thank you @Erin-Cecele That worked! I can create a new project and run a preview. However, once I start working on my project, I edit all the info and I run a preview again to see the changes, I get this error:
[CLI] running eleventy using lib/11ty cli
[CLI:11ty] running eleventy serve
[quire] DEBUG Figures:ImageProcessor
inputRoot: /Users/v-federici/parasoleprintmaking/content/_assets/images
outputRoot: /Users/v-federici/parasoleprintmaking/_site
[quire] INFO Figures Processing complete
WARNING: mixed-decls deprecation is obsolete. If you were previously silencing it, your code may now behave in unexpected ways.
WARNING: mixed-decls deprecation is obsolete. If you were previously silencing it, your code may now behave in unexpected ways.
WARNING: mixed-decls deprecation is obsolete. If you were previously silencing it, your code may now behave in unexpected ways.
[11ty] Problem writing Eleventy templates:
[11ty] 1. Having trouble writing to "./_site/index.html" from "./content/index.md" (via EleventyTemplateError)
[11ty] 2. Transform
pdfencountered an error when transforming ./content/index.md. (via EleventyTransformError)[11ty] 3. Cannot read properties of null (reading '1') (via TypeError)
[11ty]
[11ty] Original error stack trace: TypeError: Cannot read properties of null (reading '1')
[11ty] at file:///Users/v-federici/parasoleprintmaking/_plugins/transforms/outputs/pdf/transform.js:145:83
[11ty] at Proxy.forEach ()
[11ty] at trimLeadingSeparator (file:///Users/v-federici/parasoleprintmaking/_plugins/transforms/outputs/pdf/transform.js:144:62)
[11ty] at Object.default (file:///Users/v-federici/parasoleprintmaking/_plugins/transforms/outputs/pdf/transform.js:257:3)
[11ty] at Object. (file:///Users/v-federici/parasoleprintmaking/_plugins/transforms/outputs/index.js:24:16)
[11ty] at Object.fn (file:///Users/v-federici/parasoleprintmaking/node_modules/@11ty/eleventy/src/Benchmark/BenchmarkGroup.js:37:23)
[11ty] at TransformsUtil.runAll (file:///Users/v-federici/parasoleprintmaking/node_modules/@11ty/eleventy/src/Util/TransformsUtil.js:37:30)
[11ty] at async #renderPageEntryWithLayoutsAndTransforms (file:///Users/v-federici/parasoleprintmaking/node_modules/@11ty/eleventy/src/Template.js:927:13)
[11ty] at async Template.generateMapEntry (file:///Users/v-federici/parasoleprintmaking/node_modules/@11ty/eleventy/src/Template.js:959:15)
[11ty] at async Promise.all (index 10)
[11ty] Benchmark 137ms 11% 8× (Configuration) "epub" Transform
[11ty] Copied 7 Wrote 4 files in 1.21 seconds (303.6ms each, v3.1.0)
[11ty] Eleventy Fatal Error (CLI):
[11ty] 1. Having trouble writing to "./_site/index.html" from "./content/index.md" (via EleventyTemplateError)
[11ty] 2. Transform
pdfencountered an error when transforming ./content/index.md. (via EleventyTransformError)[11ty] 3. Cannot read properties of null (reading '1') (via TypeError)
[11ty]
[11ty] Original error stack trace: TypeError: Cannot read properties of null (reading '1')
[11ty] at file:///Users/v-federici/parasoleprintmaking/_plugins/transforms/outputs/pdf/transform.js:145:83
[11ty] at Proxy.forEach ()
[11ty] at trimLeadingSeparator (file:///Users/v-federici/parasoleprintmaking/_plugins/transforms/outputs/pdf/transform.js:144:62)
[11ty] at Object.default (file:///Users/v-federici/parasoleprintmaking/_plugins/transforms/outputs/pdf/transform.js:257:3)
[11ty] at Object. (file:///Users/v-federici/parasoleprintmaking/_plugins/transforms/outputs/index.js:24:16)
[11ty] at Object.fn (file:///Users/v-federici/parasoleprintmaking/node_modules/@11ty/eleventy/src/Benchmark/BenchmarkGroup.js:37:23)
[11ty] at TransformsUtil.runAll (file:///Users/v-federici/parasoleprintmaking/node_modules/@11ty/eleventy/src/Util/TransformsUtil.js:37:30)
[11ty] at async #renderPageEntryWithLayoutsAndTransforms (file:///Users/v-federici/parasoleprintmaking/node_modules/@11ty/eleventy/src/Template.js:927:13)
[11ty] at async Template.generateMapEntry (file:///Users/v-federici/parasoleprintmaking/node_modules/@11ty/eleventy/src/Template.js:959:15)
[11ty] at async Promise.all (index 10)
I can see in Visual Studio Code that once Quire creates index.html, the file does not contain the info that I entered in index.md...
Not sure what to do, by all the index related files show some differences with previous projects'.
For instance, in the image attached, on the left, you have the new project's (just created) index.js in the markdown (plugins) section, where all the initial lines start with "import"(and then the plugins' names); on the right, you see the same file from another project, created before this whole issue started, and the plugins lines start with "const".
Originally posted by @MultimedialitySummerSchool in #1049 (reply in thread)
Beta Was this translation helpful? Give feedback.
All reactions