matthiasott / eleventy-plus-vite

A clean and fast Eleventy Starter Project with Vite
https://eleventyplusvite.netlify.app
MIT License
185 stars 30 forks source link

Error with passthrough copy in Eleventy 2.0.0 canary.12 #2

Closed matthiasott closed 1 year ago

matthiasott commented 2 years ago

There seems to be an issue with passthrough copy when using the eleventy-plugin-vite plugin with Eleventy 2.0.0 canary.12. For now, the only solution to get a build without errors is to downgrade Eleventy to canary.11 after running npm install:

npm install @11ty/eleventy@2.0.0-canary.11

matthiasott commented 2 years ago

I just switched back to the “traditional” way of copying files without for-free passthrough copy by adding eleventyConfig.setServerPassthroughCopyBehavior("copy"); (as described in the docs) and this fixes the issue for now.