When doing a WebGL build of a Unity game I'm getting the following errors:
IOException: Access to the path '\?\C:\Users\clint\Unity\Haunted Zombie Rush\Library\BuildPlayerData\Editor' is denied.
Error building player because script class layout might be incompatible between the editor and the player.
I granted 'Everyone' full control of the folder that is saying access denied.
This project uses Unity 2023.1.19f1. I'm running Windows 11.
@BugFinder! Deleting the contents of the library folder and rebooting Unity fixed the problem.