I’ve been having the same issue, but the opposite way around, trying to run in the node environment but yarn can’t find rustc. https://github.com/elniallo/difficulty-neon. Will try the above and see if it solves the issue
Edit:
Including the above fixed the build error, however due to another issue with secure environment tokens, the build cannot be deployed to github
see this thread: Node.js build fails with no obvious error