Error: Error building site: JSBUILD: failed to transform “js/app.js” (application/javascript): Cannot read directory " ": Access denied
With 0.74.3, my project compiles just fine on Windows, gives that error on 0.75+.
The 2 imports in app.js.
On Netlify, it compiles just fine with 0.75.1.
Am I missing something?
I installed your repo locally and ran hugo server > error because of missing dependency > running npm install then hugo server > all is fine.
Try deleting node_modules and installing dependencies again. Then try deleting everything that hugo has created dynamically. If that still does not work remove the whole repo and git clone it again. I am not saying Windows is bad, but somehow it got it’s wires crossed about file rights here.
(Olen oppinut Finishin kerran, mutta unohdin kaiken siitä bad google translate ;])
I’m guessing a bug introduced upstream in ESBuild. I quickly browsed the change set, but the maintainer in that repo is pretty … quick so a lots of stuff is happening there.