Hi there, gamers!
You may have woken up and booted up Minecraft to see this message on the Minecraft Launcher! So, you install it but you find that your modded minecraft versions are missing! Disappointed, you probably reinstall the mods, Optifine in my case, and still notice that they are missing.
Nonetheless, the fix is pretty simple.
Go back to Minecraft Launcher.
Switch to the Installations tab.
Click on the folder icon aside the Latest Release version next to Play.
launcher_profiles.json and open it in Notepad. It’s a JSON file that contains configuration for the old launcher.
Copy the contents of the file.
launcher_profiles_microsoft_store.json and paste the contents into that file.
Relaunch Minecraft Launcher and you will see your modded versions.
For the time being, until further updates, install more mods into Minecraft by renaming
launcher_profiles.json, installing new mods, and renaming the file back to