Repository navigation
quire preview generating error messages when a specific md file is added #1245
Before proceeding, make sure there isn’t an existing issue for this bug.
Expected BehaviorI've been creating my md files in Brackets. After creating each, I run quire preview to make sure everything renders properly. Actual BehaviorThe two most recent md files result in a long list of errors in Terminal. Most seem to be related to images, although I haven't added any images yet, nor deleted the images in the template. If I remove the two md files, then quire preview runs fine. But as soon as I add one or the other files. It errors out again. Steps to Reproduce
Version Numbers[your-joe] Web BrowserChrome Version 148.0.7778.97 Relevant Terminal/Shell Outputmmp@Michelles-MacBook-Pro-2 ~ % cd your-joe
mmp@Michelles-MacBook-Pro-2 your-joe % quire preview
[CLI] running eleventy using lib/11ty cli
[CLI:11ty] running eleventy serve
(node:16042) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
[quire] DEBUG Figures:ImageProcessor
inputRoot: /Users/mmp/your-joe/content/_assets/images
outputRoot: /Users/mmp/your-joe/_site
[quire] DEBUG Figures:ImageProcessor processing inputPath: /Users/mmp/your-joe/content/_assets/images/figures/lange-mother-a.jpg
[quire] DEBUG Figures:ImageTransformer skipping previously transformed image '/Users/mmp/your-joe/content/_assets/images/figures/lange-mother-a.jpg'
[quire] DEBUG Figures:ImageTransformer skipping previously transformed image '/Users/mmp/your-joe/content/_assets/images/figures/lange-mother-a.jpg'
[quire] DEBUG Figures:ImageTransformer skipping previously transformed image '/Users/mmp/your-joe/content/_assets/images/figures/lange-mother-a.jpg'
[quire] DEBUG Figures:ImageTiler skipping previously tiled image '/Users/mmp/your-joe/content/_assets/images/figures/lange-mother-a.jpg'
[quire] INFO Figures:IIIF:Manifest Generated manifest for figure "cat-1"
[quire] DEBUG Figures:Figure processing annotation image figures/lange-mother-b.jpg
[quire] DEBUG Figures:ImageProcessor processing inputPath: /Users/mmp/your-joe/content/_assets/images/figures/lange-mother-b.jpg
[quire] DEBUG Figures:Figure processing annotation image figures/lange-mother-c.jpg
[quire] DEBUG Figures:ImageProcessor processing inputPath: /Users/mmp/your-joe/content/_assets/images/figures/lange-mother-c.jpg
[quire] INFO Figures:IIIF:Manifest Generated manifest for figure "mother-variants"
[quire] DEBUG Figures:ImageProcessor processing inputPath: /Users/mmp/your-joe/content/_assets/images/figures/evans-fields-family-a.jpg
[quire] DEBUG Figures:ImageTransformer skipping previously transformed image '/Users/mmp/your-joe/content/_assets/images/figures/evans-fields-family-a.jpg'
[quire] DEBUG Figures:ImageTransformer skipping previously transformed image '/Users/mmp/your-joe/content/_assets/images/figures/evans-fields-family-a.jpg'
[quire] DEBUG Figures:ImageTransformer skipping previously transformed image '/Users/mmp/your-joe/content/_assets/images/figures/evans-fields-family-a.jpg'
[quire] DEBUG Figures:ImageTiler skipping previously tiled image '/Users/mmp/your-joe/content/_assets/images/figures/evans-fields-family-a.jpg'
[quire] INFO Figures:IIIF:Manifest Generated manifest for figure "cat-2"
[quire] DEBUG Figures:Figure processing annotation image figures/lange-layers/original-label.png
[quire] DEBUG Figures:ImageProcessor processing inputPath: /Users/mmp/your-joe/content/_assets/images/figures/lange-layers/original-label.png
[quire] DEBUG Figures:Figure processing annotation image figures/lange-layers/additional-label.png
[quire] DEBUG Figures:ImageProcessor processing inputPath: /Users/mmp/your-joe/content/_assets/images/figures/lange-layers/additional-label.png
[quire] DEBUG Figures:Figure processing annotation image figures/lange-layers/scratches.png
[quire] DEBUG Figures:ImageProcessor processing inputPath: /Users/mmp/your-joe/content/_assets/images/figures/lange-layers/scratches.png
[quire] DEBUG Figures:Figure processing annotation image figures/lange-layers/thumb.png
[quire] DEBUG Figures:ImageProcessor processing inputPath: /Users/mmp/your-joe/content/_assets/images/figures/lange-layers/thumb.png
[quire] DEBUG Figures:ImageProcessor processing inputPath: /Users/mmp/your-joe/content/_assets/images/figures/lange-layers/base.jpg
[quire] DEBUG Figures:ImageTransformer skipping previously transformed image '/Users/mmp/your-joe/content/_assets/images/figures/lange-layers/base.jpg'
[quire] DEBUG Figures:ImageTransformer skipping previously transformed image '/Users/mmp/your-joe/content/_assets/images/figures/lange-layers/base.jpg'
[quire] DEBUG Figures:ImageTransformer skipping previously transformed image '/Users/mmp/your-joe/content/_assets/images/figures/lange-layers/base.jpg'
[quire] DEBUG Figures:ImageTiler skipping previously tiled image '/Users/mmp/your-joe/content/_assets/images/figures/lange-layers/base.jpg'
[quire] INFO Figures:IIIF:Manifest Generated manifest for figure "mother-annotations"
[quire] INFO Figures Processing complete
[11ty] Problem writing Eleventy templates:
[11ty] 1. Having trouble writing to "./_site/1944-0507/index.html" from "./content/1944-0507.md" (via EleventyTemplateError)
[11ty] 2. Transform `@11ty/eleventy/html-transformer` encountered an error when transforming ./content/1944-0507.md. (via EleventyTransformError)
[11ty] 3. You have more than one HTML `id` attribute using the same value (id="fnref4") in your template (./content/1944-0507.md). You can disable this error in the IdAttribute plugin with the `checkDuplicates: false` option.
[11ty]
[11ty] Original error stack trace: Error: You have more than one HTML `id` attribute using the same value (id="fnref4") in your template (./content/1944-0507.md). You can disable this error in the IdAttribute plugin with the `checkDuplicates: false` option.
[11ty] at file:///Users/mmp/your-joe/node_modules/@11ty/eleventy/src/Plugins/IdAttributePlugin.js:69:15
[11ty] at /Users/mmp/your-joe/node_modules/posthtml/lib/api.js:85:52
[11ty] at traverse (/Users/mmp/your-joe/node_modules/posthtml/lib/api.js:105:26)
[11ty] at traverse (/Users/mmp/your-joe/node_modules/posthtml/lib/api.js:111:5)
[11ty] at traverse (/Users/mmp/your-joe/node_modules/posthtml/lib/api.js:105:17)
[11ty] at traverse (/Users/mmp/your-joe/node_modules/posthtml/lib/api.js:111:5)
[11ty] at traverse (/Users/mmp/your-joe/node_modules/posthtml/lib/api.js:105:17)
[11ty] at traverse (/Users/mmp/your-joe/node_modules/posthtml/lib/api.js:111:5)
[11ty] at traverse (/Users/mmp/your-joe/node_modules/posthtml/lib/api.js:105:17)
[11ty] at traverse (/Users/mmp/your-joe/node_modules/posthtml/lib/api.js:111:5)
[11ty] Benchmark 88ms 9% 27× (Configuration) "menu" JavaScript Function
[11ty] Copied 7 Wrote 0 files in 1.03 seconds (v3.1.2)
[11ty] Eleventy Fatal Error (CLI):
[11ty] 1. Having trouble writing to "./_site/1944-0507/index.html" from "./content/1944-0507.md" (via EleventyTemplateError)
[11ty] 2. Transform `@11ty/eleventy/html-transformer` encountered an error when transforming ./content/1944-0507.md. (via EleventyTransformError)
[11ty] 3. You have more than one HTML `id` attribute using the same value (id="fnref4") in your template (./content/1944-0507.md). You can disable this error in the IdAttribute plugin with the `checkDuplicates: false` option.
[11ty]
[11ty] Original error stack trace: Error: You have more than one HTML `id` attribute using the same value (id="fnref4") in your template (./content/1944-0507.md). You can disable this error in the IdAttribute plugin with the `checkDuplicates: false` option.
[11ty] at file:///Users/mmp/your-joe/node_modules/@11ty/eleventy/src/Plugins/IdAttributePlugin.js:69:15
[11ty] at /Users/mmp/your-joe/node_modules/posthtml/lib/api.js:85:52
[11ty] at traverse (/Users/mmp/your-joe/node_modules/posthtml/lib/api.js:105:26)
[11ty] at traverse (/Users/mmp/your-joe/node_modules/posthtml/lib/api.js:111:5)
[11ty] at traverse (/Users/mmp/your-joe/node_modules/posthtml/lib/api.js:105:17)
[11ty] at traverse (/Users/mmp/your-joe/node_modules/posthtml/lib/api.js:111:5)
[11ty] at traverse (/Users/mmp/your-joe/node_modules/posthtml/lib/api.js:105:17)
[11ty] at traverse (/Users/mmp/your-joe/node_modules/posthtml/lib/api.js:111:5)
[11ty] at traverse (/Users/mmp/your-joe/node_modules/posthtml/lib/api.js:105:17)
[11ty] at traverse (/Users/mmp/your-joe/node_modules/posthtml/lib/api.js:111:5)
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.Supporting InformationNo response |
Replies: 2 comments 4 replies
|
Hi @mmpadilla15, I moved this issue to a discussion until we are certain that something is actually broken. Looking at the error message you received, I suspect there is an issue with one or more |
|
@mmpadilla15 I think that Eleventy is complaining that in your file Open that file and look for |
@mmpadilla15 I think that Eleventy is complaining that in your file
content/1944-0507.mdthere are two footnote references with the same number. You can tell because the duplicate id isfnref4—fnstands for footnote,reffor the clickable superscript in the text, and4is the footnote number ( see: https://www.npmjs.com/package/markdown-it-footnote ).Open that file and look for
[^4]used more than once in the body text. Each footnote reference needs to be unique. Once fixed, the preview should run without errors.