Home
Support Forums

Netlify problem (Problem writing Eleventy)

Hi,

I’m trying to deploy my website using Netlify and Github. For some reasons, it shows me this error:

Problem writing Eleventy templates: (more in DEBUG output)
6:59:22 PM: > TemplateLayoutPathResolver directory does not exist for 404.html: _includes
6:59:22 PM: Error was thrown:
6:59:22 PM: Error: TemplateLayoutPathResolver directory does not exist for 404.html: _includes
6:59:22 PM: at TemplateLayoutPathResolver.findFileName (/opt/build/repo/node_modules/@11ty/eleventy/src/TemplateLayoutPathResolver.js:101:13)
6:59:22 PM: at TemplateLayoutPathResolver.init (/opt/build/repo/node_modules/@11ty/eleventy/src/TemplateLayoutPathResolver.js:68:28)
6:59:22 PM: at new TemplateLayoutPathResolver (/opt/build/repo/node_modules/@11ty/eleventy/src/TemplateLayoutPathResolver.js:21:10)
6:59:22 PM: at new TemplateLayout (/opt/build/repo/node_modules/@11ty/eleventy/src/TemplateLayout.js:16:24)
6:59:22 PM: at Function.getTemplate (/opt/build/repo/node_modules/@11ty/eleventy/src/TemplateLayout.js:44:16)
6:59:22 PM: at Template.getLayout (/opt/build/repo/node_modules/@11ty/eleventy/src/Template.js:86:37)
6:59:22 PM: at Template.getData (/opt/build/repo/node_modules/@11ty/eleventy/src/Template.js:242:27)
6:59:22 PM: at async Template.getTemplateMapEntries (/opt/build/repo/node_modules/@11ty/eleventy/src/Template.js:744:16)
6:59:22 PM: at async TemplateMap.add (/opt/build/repo/node_modules/@11ty/eleventy/src/TemplateMap.js:32:21)
6:59:22 PM: at async Promise.all (index 7)
6:59:22 PM: Wrote 0 files in 0.13 seconds (v0.11.1)
6:59:22 PM: ​
6:59:22 PM: ────────────────────────────────────────────────────────────────
6:59:22 PM: “build.command” failed
6:59:22 PM: ────────────────────────────────────────────────────────────────
6:59:22 PM: ​
6:59:22 PM: Error message
6:59:22 PM: Command failed with exit code 1: eleventy
6:59:22 PM: ​
6:59:22 PM: Error location
6:59:22 PM: In build.command from netlify.toml:
6:59:22 PM: eleventy
6:59:22 PM: ​
6:59:22 PM: Resolved config
6:59:22 PM: build:
6:59:22 PM: command: eleventy
6:59:22 PM: commandOrigin: config
6:59:22 PM: publish: /opt/build/repo/public
6:59:22 PM: publishOrigin: config

BTW, I need a solution because I must deliver this project today. I appreciate if someone helps me!

It says some kind of a directory doesn’t exist. You can expect more people to be able to help if you provide your source code.

Solved as mentioned in Netlify Can not find the Manifest.json - #6 by mojahani