Unity starting into safe mode with build in scripts throwing errors

When I try to load my unity project in to version 2021.2.9f1, it prompts me to go into safe mode, and gives these errors:

Library\PackageCache\com.unity.2d.common@7.0.0-pre.4\Runtime\InternalBridge\IAnimationPreviewable.cs(5,39): error CS0246: The type or namespace name 'IAnimationPreviewable' could not be found (are you missing a using directive or an assembly reference?)

Library\PackageCache\com.unity.2d.common@7.0.0-pre.4\Editor\TextureGenerator\TextureGeneratorHelper.cs(32,9): error CS0246: The type or namespace name 'TextureImporterSwizzle' could not be found (are you missing a using directive or an assembly reference?)

Both of those are built in unity scripts, so I don’t know why they are having issues after I updated unity. The issue persists if I downgrade unity versions.

1 Like

Hi, @superrcgamer!
You should reset your packages to default

Go to Help > Reset Packages to Defaults

And then install back packages in Package Manager manually