Closed 3goats closed 3 years ago
OK, so doing this eleventy --config=./eleventy.config.js
seems to resolve the issue. However, it seems renaming the config file to .eleventy.js
means it still doesn't get found by default.
I believe this error happens when you use the non-default includes folder (e.g. includes
in your case) and you aren’t pointing to the --config
file. So we look for the default _includes
which doesn’t exist?
This is about Eleventy not knowing where your config file is, right?
This is an automated message to let you know that a helpful response was posted to your issue and for the health of the repository issue tracker the issue will be closed. This is to help alleviate issues hanging open waiting for a response from the original poster.
If the response works to solve your problem—great! But if you’re still having problems, do not let the issue’s closing deter you if you have additional questions! Post another comment and I will reopen the issue. Thanks!
hi i am having this issue when i use eleventy within a workspace of a mono repo
Hi,
Im using the skeleventy starter project and have noticed that the Eleventy config file is called
eleventy.config.js
as oppose.eleventy.js
as per the docs. When I run 'npm run dev' my site compiles and runs fine. However, If I rename myeleventy.config.js
to.eleventy.js
or use theeleventy
command to build, I get the following error:My
eleventy.config.js
looks like this:And my directory structure looks like this:
Any guidance would be much appreciated.