'Unable to use C++20 standard modules with Visual Studio 2022

I'm trying to use modules from C++20. Everything works properly with my own modules; I can create and use them normally.

However, if I want to import standard modules (std.core, std.regex, etc), I get this error, and cannot find anything similar on internet.

E3373 IFC file "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\ifc\x64/Debug/std.core.ifc" has unsupported version 0.41



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source