11ty / eleventy

A simpler site generator. Transforms a directory of templates (of varying types) into HTML.
https://www.11ty.dev/
MIT License
17.18k stars 494 forks source link

Strange shortcode problem #3179

Closed tBaxter closed 9 months ago

tBaxter commented 9 months ago

Operating system

Sonoma 14.2.1

Eleventy

2.0.1

Describe the bug

With apologies if there's a better support forum out there where I could have asked this...

I'm seeing a strange error with custom shortcodes and filters on a new 11ty site I'm working on, that I've never seen before.

When I edit a page and save, the build fails: Error: filter not found: prettyDate

but if I touch .eleventy.js, it then recognizes the filter and builds fine. This happens consistently and repeatably. Save the page, build fails. Touch .eleventy.js with no changes and the build works again.

It feels like some sort of caching issue maybe? I've tried deleting the output folder and regenerating, but it didnt' change the behavior.

Reproduction steps

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See an error

Expected behavior

No response

Reproduction URL

No response

Screenshots

No response

tBaxter commented 9 months ago

Repo with code: https://github.com/tBaxter/another-rodeo

tBaxter commented 9 months ago

I'm going to close this as the problem seems to have resolved itself by shutting down npm start and then starting again. I'll reopen if it reappears.