How to solve error C4996 when calling npx react-native run-windows?

133 views Asked by At

I created a new application using react native for windows. I followed the instructions on the microsoft website, but when I call the command npx react-native run-windows an error occurs enter image description here

Tried all the options on stackoverflow. Changed versions of react-native-windows.

1

There are 1 answers

0
emil On

The problem was with the fmt 8.00 library. Microsoft just made a commit to the project yesterday and replaced it with fmt 10.1.0. But it's not in npm yet. Therefore, before the npx react-native run-windows command, you need to change the following lines in the Directory.Build.props file:

<FmtVersion>10.1.0</FmtVersion>
<FmtCommitHash>ca2e3685b160617d3d95fcd9e789c4e06ca88</FmtCommitHash>