Reproduction steps:
1 Open the attached project “BogusErrors”
2. Observe the Console window
3. Close the Editor
4. Go to the “Library” folder and delete the ScriptAssemblies folder and the PackageCache folder.
5. Open the project again
6. Observe the console window
Expected result: Few or no errors
Actual result: The console window is populated with errors
Reproducible with: 2022.2.12f1, 2023.1.0b9, 2023.2.0a8
Couldn't test with: 2020.3.46f1, 2021.3.21f1 ( Local and Custom packages are incompatible)
Reproducible on: Windows 10
Notes:
Depending on the editor version, some errors might occur when the project is opened for the first time. They can be ignored while packages are compatible.
After all the steps, restarting the editor will make the console window look like the first time opened project.