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

[eleventy-plugin-local-respimg] '(intermediate value).flat' error #49

Open
jacobbf opened this issue Oct 9, 2020 · 0 comments
Open

Comments

@jacobbf
Copy link

jacobbf commented Oct 9, 2020

Getting the following mysterious error out of eleventy-plugin-local-respimg.

> Having trouble writing template: _site/index.html

`TemplateWriterWriteError` was thrown
> (intermediate value).flat is not a function

`TypeError` was thrown:
    TypeError: (intermediate value).flat is not a function
        at Template.respimg (/Users/jake/Documents/Sites/jakebf.com/node_modules/eleventy-plugin-local-respimg/lib/respimg.js:162:112)

My responsive image config is 100% the same as the example besides changing output to _site. The images files live at /assets/images and are included in the html as <img src="/assets/images/{{ item.id }}.jpeg" alt="{{ item.title }}">. Initially I thought it might have something to do with the way I'm generating the src in Nunjucks, but I tried removing everything and calling a specific image and the error persisted, so I'm inclined to think it has something to do with the config of the site more generally.

Let me know what might be helpful! Happy to provide a public version of the repo if necessary.

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

No branches or pull requests

1 participant