Skip to content

Preview error related to index.md #1062

@Erin-Cecele

Description

@Erin-Cecele

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 pdf encountered 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 pdf encountered 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".

Screenshot 2025-09-12 at 10 16 39 AM

Originally posted by @MultimedialitySummerSchool in #1049 (reply in thread)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions