Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Production build fails in windows - vite.cjs - fast_glob.sync() - needs path normalized for this to work #239

Open
rajeshps opened this issue Mar 22, 2023 · 2 comments
Labels
🐞 bug Something isn't working

Comments

@rajeshps
Copy link

Describe the bug

In windows npm run build fails saying
output directory empty! (via error) - this is because fast_glob isn't finding any *.html files due to path issues.

${eleventyTempBuildDir}/**/*.html is not producing any results thus fails with above error.

This can be fixed by replacing \ to /
`${eleventyTempBuildDir}/**/*.html`.replace(/\\/g, '/')

To Reproduce

Steps to reproduce the behavior:

  1. Run build on windows OS

Expected behavior

it should work and produce/process 11ty output to eleventyDir.output

(please complete the following information):

  • OS: Windows 10
  • Browser is Chrome
@rajeshps rajeshps added the 🐞 bug Something isn't working label Mar 22, 2023
@stormitornado
Copy link

stormitornado commented Nov 16, 2023

I faced the same problem, but replacing solves just one problem.
In my case it also cannot load files from /_island/ directory, also because path normalization problem.
Also output folder disappears in a build process

@bholmesdev
Copy link
Contributor

Thanks for sharing these output issues and potential debugging advice @stormitornado. As for a fix, I am sorry to say that Slinkity is no longer maintained. To make this clear to new users, I have archived the repository, and I have updated the project README to reflect the current status.

If the community would like to fork and keep Slinkity alive, all code is open and MIT licensed. I apologize for the radio silence, but I hope this clarifies everything!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants