patniko / chain-react-2018-lessons

Lesson plan for Chain React 2018 Workshop
8 stars 3 forks source link

`run-windows` fails in lesson 10. #16

Open AndrewSouthpaw opened 6 years ago

AndrewSouthpaw commented 6 years ago

Following the directions in lesson 10, I'm getting an error like this:

Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Microsoft\VisualStudio\v15.0\AppxPackage\Microsof
t.AppXPackage.Targets(5552,5): warning APPX1901: The DefaultLanguage property is either missing from the project file o
r does not have a value. The fallback language is set to the Visual Studio language: en-US. [C:\Users\User\source\repos
\cr2018\node_modules\react-native-windows\Yoga\csharp\Yoga\Yoga.Universal.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Microsoft\VisualStudio\v15.0\AppxPackage\Microsof
t.AppXPackage.Targets(2428,5): warning APPX0108: The certificate specified has expired. For more information about rene
wing certificates, see http://go.microsoft.com/fwlink/?LinkID=241478. [C:\Users\User\source\repos\cr2018\windows\AppCen
terSample\AppCenterSample.csproj]
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Microsoft\VisualStudio\v15.0\AppxPackage\Microsof
t.AppXPackage.Targets(3133,5): error APPX0108: The certificate specified has expired. For more information about renewi
ng certificates, see http://go.microsoft.com/fwlink/?LinkID=241478. [C:\Users\User\source\repos\cr2018\windows\AppCente
rSample\AppCenterSample.csproj]
Build failed with message Error: Command failed: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\msbuild.exe" "C:/Users/User/source/repos/cr2018/windows/AppCenterSample.sln" /clp:NoSummary;NoItemAndPropertyList;Verbosity=quiet /nologo /p:Configuration=Debug /p:Platform=x86 /p:AppxBundle=Never /p:PlatformToolset=v141 /p:VisualStudioVersion=15.0. Check your build configuration.

I remember there was some discussion around run-windows not working off the bat, but I was behind in the workshop and not able to follow along, and now I don't remember what was done.

Help?

AndrewSouthpaw commented 6 years ago

… FWIW, that error sometimes gets fixed by running the run-windows command multiple times, because 🤷‍♂️ . But not always.

When it does successfully run (~10% of attempts), I'm getting a different error:

Failed to deploy: Command failed: CheckNetIsolation LoopbackExempt -a -n=

Discussions like this one have not proven useful... thoughts?

rozele commented 6 years ago

@AndrewSouthpaw when you installed rnpm-plugin-windows and ran the react-native windows command, did you do this from your Mac or from WSL instead of from a shell on Windows (cmd, PS, etc.)?

AndrewSouthpaw commented 6 years ago

Ooh, I think I installed it from my Mac. Didn't think it would make a difference, but now that you say it, it totally makes sense that it could be significant. I'll try that out and get back to you... thanks for the reply.