I’m struggling with random Failed during stage 'deploying site': Invalid filename 'web/node_modules/hamljs/test/fixtures/issue.#8.html'. Deployed filenames cannot contain # or ? characters
issues with Netlify deploys from Git commits.
It started yesterday, and I looked through the commit’s changes, none of which resulted in the creation of any files with hashes or question marks in their name either in the src or the dist.
Furthermore, I tried to re-deploy an older commit that had built just fine with Netlify’s “Retry deploy” clicky-button – and now that one is failing with this same error message even though it previously hadn’t.
And on top of that, if I use the Netlify CLI tool to build & deploy, even my current codebase deploys just fine.
It’s literally letting Netlify do the build and deploy as a CI step that’s randomly failing with this error message that surely couldn’t apply to me.
I Googled the error message, but there’s nothing but unfinished threads of people scratching their heads without resolution – that said, it seems to come up a lot in the world of Netlify.
How do I get un-stuck and able to deploy via Git-based CI again?