Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on serve - eleventyConfig.getFilter(...) is not a function #3365

Closed
reatlat opened this issue Jul 15, 2024 · 2 comments
Closed

Error on serve - eleventyConfig.getFilter(...) is not a function #3365

reatlat opened this issue Jul 15, 2024 · 2 comments
Labels

Comments

@reatlat
Copy link

reatlat commented Jul 15, 2024

I just bump packages to lates alpha and beta for image plugin, and --serve mode starts show me erros and cant show me images on browser

My packages

  "@11ty/eleventy": "^3.0.0-alpha.15",
  "@11ty/eleventy-img": "5.0.0-beta.5",

Error log:

[11ty] Server at http://localhost:8080/
[11ty] Unhandled rejection in promise: (more in DEBUG output)
[11ty] eleventyConfig.getFilter(...) is not a function (via TypeError)
[11ty] 
[11ty] Original error stack trace: TypeError: eleventyConfig.getFilter(...) is not a function
[11ty]     at /.11ty/image/ (/Volumes/Work/FreshJuice/freshjuice.dev/node_modules/@11ty/eleventy-img/src/on-request-during-serve-plugin.js:35:108)
[11ty]     at EleventyDevServer.eleventyDevServerMiddleware (/Volumes/Work/FreshJuice/freshjuice.dev/node_modules/@11ty/eleventy-dev-server/server.js:460:28)
[11ty]     at EleventyDevServer.onRequestHandler (/Volumes/Work/FreshJuice/freshjuice.dev/node_modules/@11ty/eleventy-dev-server/server.js:627:11)
[11ty]     at Server.emit (node:events:514:28)
[11ty]     at parserOnIncoming (node:_http_server:1143:12)
[11ty]     at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17)
@zachleat zachleat added the bug label Jul 15, 2024
@zachleat
Copy link
Member

zachleat commented Jul 15, 2024

Ohhh, reproduced this one. Likely related to a subtle change in #3310

@zachleat zachleat transferred this issue from 11ty/eleventy-img Jul 15, 2024
@zachleat zachleat added this to the Eleventy 3.0.0 milestone Jul 15, 2024
@zachleat
Copy link
Member

Shipping with 3.0.0-alpha.17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants