Open shoogstoel opened 1 year ago
Running into the same issue - worth noting that it doesn't matter whether server.middlewareMode
in Vite settings is true
or false
.
It also appears that if passthrough behaviour is set to "copy"
, Vite doesn't seem to pick up changes to copied asset folders to trigger HMR
Yep, I just stumbled upon this error as well.
Operating system
Ubuntu
Eleventy
2.0.1
Describe the bug
When using
setServerPassthroughCopyBehavior('passthrough');
in conjunction with'@11ty/eleventy-plugin-vite'
results in the following error, when trying to runnpx @11ty/eleventy --serve
:Are there any known limitations when using Vite as middleware? Is there anything else I have to take care of when using passthrough?
Reproduction steps
No response
Expected behavior
No response
Reproduction URL
No response
Screenshots
No response