Having trouble creating individual events pages from _data/events.json #3687
-
I am posting this here and on Stack Overflow to see if I can get some help. I am truly lost I have an events.json file in my _data folder. It contains a list of events, grouped by date.
I have an event.11ty.js file in my src folder:
I have an events calendar that uses the JSON file to add events to the calendar. It then links to each individual event page. However, when I run npx eleventy --serve, I am getting this in Terminal:
I have been trying multiple things, even using ChatGPT to try and find solutions (I know, I know). Nothing seems to be working. Is there any help anyone can give me? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I think you need to use The error seems to imply the event.11ty.js file's |
Beta Was this translation helpful? Give feedback.
I fear this wasn't a satisfactory answer, and I was bored, so this might get you closer: