'react-native run-windows error - Error opening or processing WinM

after running react-native run-windows, it brought this error....

5>midlrt : error MIDL1001: [msg]cannot open input file [context]Error opening or processing WinMD c:\users\hp\desktop\coding\react-native\desktop app\dhymm\windows\packages\microsoft.ui.xaml.2.3.191129002\lib\uap10.0\microsoft.ui.xaml.winmd. HRESULT 0x80070003. [C:\Users\HP\Desktop\CODING\REACTNATIVE\DESKTOPAPP\dhymm\node_modules\react-native-windows\Microsoft.ReactNative\Microsoft.ReactNative.vcxproj]. Check your build configuration. See C:\Users\HP\AppData\Local\Temp\msbuild_11100.err

any help would be appreciated

i have also configured my paths to only letters, ran npm i again, tried npx react-native run-windows it brought the same error



Sources

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

Source: Stack Overflow

Solution Source