Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run a Calculator sample #129

Closed
lexprom opened this issue May 28, 2020 · 7 comments · Fixed by #138
Closed

Cannot run a Calculator sample #129

lexprom opened this issue May 28, 2020 · 7 comments · Fixed by #138
Assignees
Labels

Comments

@lexprom
Copy link

lexprom commented May 28, 2020

Environment

  • yarn - 1.9.4

  • node - 12.17.0

  • npm - 6.14.5

  • "react": "16.9.0",

  • "react-native": "0.61.5",

  • "react-native-windows": "^0.61.0-0"

Building configuration

  • Target Platform Version(s): 10.0.18362.0
  • Target Device(s): Desktop
  • Visual Studio Version: Visual Studio 2019, Visual Studio 2017
  • Build Configuration: Debug

Little bit of description

There was an exact same issue. But I tried the same steps to fix it and it didn't help. By the way, a problem with the path too long(260 character limit) still there. I don't know if that only reproduces for me. But unlike @ngducnghia I don't have a problem with a temporary certificate if that helps 😬

Steps to Reproduce

  1. Cloned repository
  2. Installed dependencies
  3. Tried to run it in Visual Studio 2019

Actual Behaviour

image

react-native run-windows --logging

Searching for MSBuild version 16.0
Found MSBuild v16.0 at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin (16.5.29920.165)
√ Found MSBuild v16.0 at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin (16.5.29920.165)
Searching for MSBuild version 15.0
Found MSBuild v15.0 at C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin (15.9.28307.1064)
√ Found MSBuild v15.0 at C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin (15.9.28307.1064)
Searching for MSBuild version 14.0
Searching for MSBuild version 12.0
Searching for MSBuild version 4.0
Restoring NuGets
C:\Users\pak\AppData\Local\Temp\nuget.4.9.2.exe
MSBuild auto-detection: using msbuild version '16.5.0.12403' from 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\bin'.
All packages listed in packages.config are already installed.
√ Restoring NuGets
Searching for MSBuild version 16.0
Found MSBuild v16.0 at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin (16.5.29920.165)
√ Found MSBuild v16.0 at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin (16.5.29920.165)
Searching for MSBuild version 15.0
Found MSBuild v15.0 at C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin (15.9.28307.1064)
√ Found MSBuild v15.0 at C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin (15.9.28307.1064)
Searching for MSBuild version 14.0
Searching for MSBuild version 12.0
Searching for MSBuild version 4.0
Found Solution: C:/Users/pak/Documents/react-native-windows-samples/samples/Calculator/windows/Calculator.sln
√ Found Solution: C:/Users/pak/Documents/react-native-windows-samples/samples/Calculator/windows/Calculator.sln
Build configuration: Debug
i Build configuration: Debug
Build platform: x86
i Build platform: x86
Running MSBuild with args /clp:NoSummary;NoItemAndPropertyList;Verbosity=normal /nologo /p:Configuration=Debug /p:Platform=x86 /p:AppxBundle=Never /p:PlatformToolset=v141 /p:VisualStudioVersion=16.0 /bl
- Building Solution
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\msbuild.exe /nologo /bl /clp:NoSummary;NoItemAndPropertyList;Verbosity=normal /p:Configuration=Debug /p:Platform=x86 /p:AppxBundle=Never /p:PlatformToolset=v141 /p:VisualStudioVersion=16.0 C:/Users/pak/Documents/react-native-windows-samples/samples/Calculator/windows/Calculator.sln
Building the projects in this solution one at a time. To enable parallel build, please add the "-m" switch.
Build started 5/28/2020 5:12:55 PM.
Project "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\windows\Calculator.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
  Building solution configuration "Debug|x86".
Project "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\windows\Calculator.sln" (1) is building "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\windows\Calculator\Calculator.vcxproj.metaproj" (2) on node 1 (default targets).
Project "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\windows\Calculator\Calculator.vcxproj.metaproj" (2) is building "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\Microsoft.ReactNative\Microsoft.ReactNative.vcxproj" (3) on node 1 (default targets).
Project "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\Microsoft.ReactNative\Microsoft.ReactNative.vcxproj" (3) is building "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\Common\Common.vcxproj" (4) on node 1 (default targets).
GetInstalledSDKLocations:
  Searching for SDKs targeting "UAP, 10.0.18362.0".
  Searching for SDKs targeting "Windows, 8.1".
ResolveSDKReferences:
    Reading SDK manifest file "C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\Microsoft.VCLibs\14.0\SDKManifest.xml".
    Targeted configuration and architecture "Debug|x86"
    Could not find "FrameworkIdentity" attribute "FrameworkIdentity-Debug-x86" in the SDK manifest.
    Found "FrameworkIdentity" attribute "Name = Microsoft.VCLibs.140.00.Debug, MinVersion = 14.0.27810.0, Publisher = 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'" in the SDK manifest.
    Found "APPX" location attribute "AppX-Debug-x86=.\AppX\Debug\x86\Microsoft.VCLibs.x86.Debug.14.00.appx" in the SDK manifest.
    Found "APPX" location attribute "AppX-Debug-x64=.\AppX\Debug\x64\Microsoft.VCLibs.x64.Debug.14.00.appx" in the SDK manifest.
    Found "APPX" location attribute "AppX-Debug-ARM=.\AppX\Debug\ARM\Microsoft.VCLibs.ARM.Debug.14.00.appx" in the SDK manifest.
    Found "APPX" location attribute "AppX-Debug-ARM64=.\AppX\Debug\ARM64\Microsoft.VCLibs.ARM64.Debug.14.00.appx" in the SDK manifest.
ExpandSDKReferences:
  Enumerating SDK Reference "Microsoft.VCLibs, Version=14.0" from "C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\Microsoft.VCLibs\14.0\".
InitializeBuildStatus:
  Creating "build\x86\Debug\Common\Common.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
  All outputs are up-to-date.
Lib:
  All outputs are up-to-date.
  Common.vcxproj -> C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\Common\target\x86\Debug\Common\Common.lib
ComputeProcessXamlFiles:
  (Out) ProcessedXamlFiles ==
CustomOutputGroupForPackaging:
  (Out) Project='Common' ProcessedXamlFiles ==
  (Out) XamlPackagingRootFolder == build\x86\Debug\Common\Generated Files\
  (Out) ProcessedXamlFilesFullPath ==
  (Out) Project='Common' CustomOutputGroupForPackagingOutput ==
GetPackagingOutputs:
  Common : Common.ProjectPriFile : C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\Common\target\x86\Debug\Common\Common.pri -> Common.pri
  Common : Common.GetResolvedSDKReferences : C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\Microsoft.VCLibs\14.0\ ->
  Common : Common._GetProjectArchitecture : x86 ->
_GenerateProjectPriConfigurationFiles:
  Common -> build\x86\Debug\Common\priconfig.xml
  Common -> build\x86\Debug\Common\unfiltered.layout.resfiles
  Common -> build\x86\Debug\Common\filtered.layout.resfiles
  Common -> build\x86\Debug\Common\excluded.layout.resfiles
  Common -> build\x86\Debug\Common\resources.resfiles
  Common -> build\x86\Debug\Common\pri.resfiles
  Common ->
  Common -> build\x86\Debug\Common\embed\embed.resfiles
_GenerateProjectPriFileCore:
Skipping target "_GenerateProjectPriFileCore" because all output files are up-to-date with respect to the input files.
FinalizeBuildStatus:
  Deleting file "build\x86\Debug\Common\Common.tlog\unsuccessfulbuild".
  Touching "build\x86\Debug\Common\Common.tlog\Common.lastbuildstate".
Done Building Project "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\Common\Common.vcxproj" (default targets).
Project "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\Microsoft.ReactNative\Microsoft.ReactNative.vcxproj" (3) is building "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\Folly\Folly.vcxproj" (5) on node 1 (default targets).
GetInstalledSDKLocations:
  Searching for SDKs targeting "UAP, 10.0.18362.0".
  Searching for SDKs targeting "Windows, 8.1".
ResolveSDKReferences:
    Reading SDK manifest file "C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\Microsoft.VCLibs\14.0\SDKManifest.xml".
    Targeted configuration and architecture "Debug|x86"
    Could not find "FrameworkIdentity" attribute "FrameworkIdentity-Debug-x86" in the SDK manifest.
    Found "FrameworkIdentity" attribute "Name = Microsoft.VCLibs.140.00.Debug, MinVersion = 14.0.27810.0, Publisher = 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'" in the SDK manifest.
    Found "APPX" location attribute "AppX-Debug-x86=.\AppX\Debug\x86\Microsoft.VCLibs.x86.Debug.14.00.appx" in the SDK manifest.
    Found "APPX" location attribute "AppX-Debug-x64=.\AppX\Debug\x64\Microsoft.VCLibs.x64.Debug.14.00.appx" in the SDK manifest.
    Found "APPX" location attribute "AppX-Debug-ARM=.\AppX\Debug\ARM\Microsoft.VCLibs.ARM.Debug.14.00.appx" in the SDK manifest.
    Found "APPX" location attribute "AppX-Debug-ARM64=.\AppX\Debug\ARM64\Microsoft.VCLibs.ARM64.Debug.14.00.appx" in the SDK manifest.
ExpandSDKReferences:
  Enumerating SDK Reference "Microsoft.VCLibs, Version=14.0" from "C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\Microsoft.VCLibs\14.0\".
InitializeBuildStatus:
  Creating "build\x86\Debug\Folly\Folly.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
  All outputs are up-to-date.
  All outputs are up-to-date.
Lib:
  All outputs are up-to-date.
  Folly.vcxproj -> C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\Folly\target\x86\Debug\Folly\Folly.lib
ComputeProcessXamlFiles:
  (Out) ProcessedXamlFiles ==
CustomOutputGroupForPackaging:
  (Out) Project='Folly' ProcessedXamlFiles ==
  (Out) XamlPackagingRootFolder == build\x86\Debug\Folly\Generated Files\
  (Out) ProcessedXamlFilesFullPath ==
  (Out) Project='Folly' CustomOutputGroupForPackagingOutput ==
GetPackagingOutputs:
  Folly : Folly.ProjectPriFile : C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\Folly\target\x86\Debug\Folly\Folly.pri -> Folly.pri
  Folly : Folly.GetResolvedSDKReferences : C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\Microsoft.VCLibs\14.0\ ->
  Folly : Folly._GetProjectArchitecture : x86 ->
_GenerateProjectPriConfigurationFiles:
  Folly -> build\x86\Debug\Folly\priconfig.xml
  Folly -> build\x86\Debug\Folly\unfiltered.layout.resfiles
  Folly -> build\x86\Debug\Folly\filtered.layout.resfiles
  Folly -> build\x86\Debug\Folly\excluded.layout.resfiles
  Folly -> build\x86\Debug\Folly\resources.resfiles
  Folly -> build\x86\Debug\Folly\pri.resfiles
  Folly ->
  Folly -> build\x86\Debug\Folly\embed\embed.resfiles
_GenerateProjectPriFileCore:
Skipping target "_GenerateProjectPriFileCore" because all output files are up-to-date with respect to the input files.
FinalizeBuildStatus:
  Deleting file "build\x86\Debug\Folly\Folly.tlog\unsuccessfulbuild".
  Touching "build\x86\Debug\Folly\Folly.tlog\Folly.lastbuildstate".
Done Building Project "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\Folly\Folly.vcxproj" (default targets).
Project "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\Microsoft.ReactNative\Microsoft.ReactNative.vcxproj" (3) is building "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\JSI\Universal\JSI.Universal.vcxproj" (6) on node 1 (default targets).
GetInstalledSDKLocations:
  Searching for SDKs targeting "UAP, 10.0.18362.0".
  Searching for SDKs targeting "Windows, 8.1".
ResolveSDKReferences:
    Reading SDK manifest file "C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\Microsoft.VCLibs\14.0\SDKManifest.xml".
    Targeted configuration and architecture "Debug|x86"
    Could not find "FrameworkIdentity" attribute "FrameworkIdentity-Debug-x86" in the SDK manifest.
    Found "FrameworkIdentity" attribute "Name = Microsoft.VCLibs.140.00.Debug, MinVersion = 14.0.27810.0, Publisher = 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'" in the SDK manifest.
    Found "APPX" location attribute "AppX-Debug-x86=.\AppX\Debug\x86\Microsoft.VCLibs.x86.Debug.14.00.appx" in the SDK manifest.
    Found "APPX" location attribute "AppX-Debug-x64=.\AppX\Debug\x64\Microsoft.VCLibs.x64.Debug.14.00.appx" in the SDK manifest.
    Found "APPX" location attribute "AppX-Debug-ARM=.\AppX\Debug\ARM\Microsoft.VCLibs.ARM.Debug.14.00.appx" in the SDK manifest.
    Found "APPX" location attribute "AppX-Debug-ARM64=.\AppX\Debug\ARM64\Microsoft.VCLibs.ARM64.Debug.14.00.appx" in the SDK manifest.
ExpandSDKReferences:
  Enumerating SDK Reference "Microsoft.VCLibs, Version=14.0" from "C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\Microsoft.VCLibs\14.0\".
InitializeBuildStatus:
  Creating "build\x86\Debug\JSI.Universal\JSI.Universal.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
  All outputs are up-to-date.
Lib:
  All outputs are up-to-date.
 ...
C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\PropertySheets\ReactPatches.targets(35,5): error MSB3021: Unable to copy file "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native\ReactCommon\turbomodule\samples\platform\ios\SampleTurboCxxModuleLegacyImpl.h" to "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\Microsoft.ReactNative\build\x86\Debug\Microsoft.ReactNative\react-native-patched\\ReactCommon\\turbomodule\samples\platform\ios\SampleTurboCxxModuleLegacyImpl.h". Could not find a part of the path 'C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\Microsoft.ReactNative\build\x86\Debug\Microsoft.ReactNative\react-native-patched\\ReactCommon\\turbomodule\samples\platform\ios\SampleTurboCxxModuleLegacyImpl.h'. [C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\Microsoft.ReactNative\Microsoft.ReactNative.vcxproj]
Done Building Project "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\Microsoft.ReactNative\Microsoft.ReactNative.vcxproj" (default targets) -- FAILED.
Done Building Project "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\windows\Calculator\Calculator.vcxproj.metaproj" (default targets) -- FAILED.
Done Building Project "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\windows\Calculator.sln" (default targets) -- FAILED.

Detailed Build Summary

============================== Build Hierarchy (IDs represent configurations) =====================================================
Id : Exclusive Time Total Time Path (Targets)

 | 1                 : 0.007s           32.881s       C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\windows\Calculator\Calculator.vcxproj.metaproj ()
 | . 4               : 30.513s           32.874s       C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\Microsoft.ReactNative\Microsoft.ReactNative.vcxproj ()
 | | | 5             : 0.551s           0.551s       C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\Common\Common.vcxproj ()
 | | | 6             : 0.385s           0.385s       C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\Folly\Folly.vcxproj ()
 | | | 7             : 0.305s           0.342s       C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\JSI\Universal\JSI.Universal.vcxproj ()
 | | | | 10          : 0.021s           0.021s       C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\Common\Common.vcxproj (GetNativeManifest)
 | | | . 11          : 0.016s           0.016s       C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\Common\Common.vcxproj (GetResolvedLinkLibs)
 | | | 8             : 0.426s           0.456s       C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\ReactCommon\ReactCommon.vcxproj ()
 | | | . 12          : 0.030s           0.030s       C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\Folly\Folly.vcxproj (GetNativeManifest)
 | | | 9             : 0.463s           0.568s       C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\ReactWindowsCore\ReactWindowsCore.vcxproj ()
 | | | | 13          : 0.041s           0.041s       C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\ReactCommon\ReactCommon.vcxproj (GetNativeManifest)
 | | | | 14          : 0.026s           0.026s       C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\Folly\Folly.vcxproj (GetResolvedLinkLibs)
 | | | . 15          : 0.039s           0.039s       C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\ReactCommon\ReactCommon.vcxproj (GetResolvedLinkLibs)
 | | | 16            : 0.018s           0.018s       C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\JSI\Universal\JSI.Universal.vcxproj (GetNativeManifest)
 | | . 17            : 0.040s           0.040s       C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\ReactWindowsCore\ReactWindowsCore.vcxproj (GetNativeManifest)
 | 2                 : 0.003s           0.003s       C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\windows\..\node_modules\react-native-windows\ReactCommon\ReactCommon.vcxproj.metaproj ()
 . 3                 : 0.004s           0.004s       C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\windows\..\node_modules\react-native-windows\ReactWindowsCore\ReactWindowsCore.vcxproj.metaproj ()```

 ============================== Node Utilization (IDs represent configurations) ====================================================
 Timestamp:            1        Duration   Cumulative
 -----------------------------------------------------------------------------------------------------------------------------------
 637262683760500079:   0        0.048s     0.048s
 637262683760978705:   1        0.006s     0.054s
 637262683761038811:   4        0.255s     0.309s .....
 637262683763587452:   5        0.551s     0.860s ...........
 637262683769097975:   6        0.385s     1.245s .......
 637262683772948847:   7        0.063s     1.308s .
 637262683773577311:   10       0.021s     1.329s
 637262683773786614:   7        0.181s     1.509s ...
 637262683775592032:   11       0.016s     1.525s
 637262683775751611:   7        0.062s     1.587s .
 637262683776369667:   8        0.069s     1.656s .
 637262683777057838:   12       0.030s     1.686s
 637262683777357035:   8        0.357s     2.043s .......
 637262683780927458:   9        0.073s     2.116s .
 637262683781655765:   13       0.041s     2.156s
 637262683782064404:   9        0.260s     2.417s .....
 637262683784667422:   14       0.026s     2.443s
 637262683784926767:   15       0.039s     2.482s
 637262683785315682:   9        0.130s     2.611s ..
 637262683786612205:   4        0.003s     2.614s
 637262683786642117:   16       0.018s     2.632s
 637262683786821658:   17       0.040s     2.672s
 637262683787220567:   4        30.256s     32.928s ++++++ (scale 1:100)
 637262684089776469:   1        0.001s     32.929s
 637262684089786434:   2        0.003s     32.932s
 637262684089816349:   3        0.004s     32.936s
 637262684089816349:   0        0.004s     32.940s
 -----------------------------------------------------------------------------------------------------------------------------------
 Utilization:          100.0    Average Utilization: 100.0
× Building Solution
Build failed with message undefined. Check your build configuration.
× Build failed with message undefined. Check your build configuration.
@ghost ghost added the Needs: Triage 🔍 label May 28, 2020
@asklar
Copy link
Member

asklar commented Jun 9, 2020

@lexprom looks like you're running an older version of RNW. Can you update package.json like so:

    "react-native": "0.62.2",
    "react-native-windows": "^0.62.0-preview.11"

With VS2019 and updating the sample's package.json, I can build the app just fine. The app seems to crash on launch, though, on closer inspection. Paging @qmatteoq . We should make sure that as we evolve the platform, the sample apps keep stable/building (#137)

@0xbs0d
Copy link

0xbs0d commented Jun 9, 2020

@asklar I tried updating the package.json as you suggested. The app builds but fails to start/install. I'm getting the same error on every sample in the repo.

Start-Locally : Faulting application name: Calculator.exe, version: 0.0.0.0, time stamp: 0x5edf7514
Faulting module name: Calculator.exe, version: 0.0.0.0, time stamp: 0x5edf7514
Exception code: 0xc0000005
Fault offset: 0x000eb6cc
Faulting process id: 0x17104
Faulting application start time: 0x01d63e536323e9a4
Faulting application path:
D:\dev\react-native-windows-samples\samples\Calculator\windows\Debug\Calculator\Calculator.exe
Faulting module path:
D:\dev\react-native-windows-samples\samples\Calculator\windows\Debug\Calculator\Calculator.exe
Report Id: d5d723f1-028b-4747-81f9-c8294520dec7
Faulting package full name: 35d79556-a169-4a2c-81eb-296f32ffb465_1.0.0.0_x86__ha4szp75kcxjr
Faulting package-relative application ID: App
At line:1 char:166
+ ... Utils.ps1"; Start-Locally 35d79556-a169-4a2c-81eb-296f32ffb465 --remo ...
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Start-Locally

and in the other window

> react-native start

error Invalid regular expression: /(D:[\\\]dev[\\\]react-native-windows-samples[\\\]samples[\\\]Calculator[\\\]node_modules[\\\]react-native[\\\].*|D:[\\\]dev[\\\]react-native-windows-samples[\\\]samples[\\\]Calculator[\\\]windows.*|node_modules\\react\\dist\\.*|website\\node_modules\\.*|heapCapture\\bundle\.js|.*\\__tests__\\.*)$/: Range out of order in character class. Run CLI with --verbose flag for more details.
SyntaxError: Invalid regular expression: /(D:[\\\]dev[\\\]react-native-windows-samples[\\\]samples[\\\]Calculator[\\\]node_modules[\\\]react-native[\\\].*|D:[\\\]dev[\\\]react-native-windows-samples[\\\]samples[\\\]Calculator[\\\]windows.*|node_modules\\react\\dist\\.*|website\\node_modules\\.*|heapCapture\\bundle\.js|.*\\__tests__\\.*)$/: Range out of order in character class
    at new RegExp (<anonymous>)
    at blacklist (D:\dev\react-native-windows-samples\samples\Calculator\node_modules\metro-config\src\defaults\blacklist.js:34:10)
    at Object.<anonymous> (D:\dev\react-native-windows-samples\samples\Calculator\metro.config.js:30:18)
    at Module._compile (internal/modules/cjs/loader.js:1156:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1176:10)
    at Module.load (internal/modules/cjs/loader.js:1000:32)
    at Function.Module._load (internal/modules/cjs/loader.js:899:14)
    at Module.require (internal/modules/cjs/loader.js:1042:19)
    at require (internal/modules/cjs/helpers.js:77:18)
    at module.exports (D:\dev\react-native-windows-samples\samples\Calculator\node_modules\import-fresh\index.js:28:9)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! Calculator@0.0.1 start: `react-native start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the Calculator@0.0.1 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

@lexprom
Copy link
Author

lexprom commented Jun 9, 2020

@asklar I tried that, now getting the same error as @0xbs0d when running react-native start or yarn start. In VS2019:
image

@asklar
Copy link
Member

asklar commented Jun 9, 2020

@lexprom @0xbs0d
I've updated the sample app to work against 0.62 and added it to the repo's CI build.
#138
Please try again and let us know if you hit any issues still.

@lexprom
Copy link
Author

lexprom commented Jun 10, 2020

@asklar hi, I cloned a new version and did everything from scratch.
Now on npx react-native run-windows:
image
Tried to launch it in VS2019 still the same problems 😔
First command with --logging:

C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\PropertySheets
\ReactPatches.targets(35,5): error MSB3027: Could not copy "C:\Users\pak\Documents\react-native-windows-samples\samples
\Calculator\node_modules\react-native\ReactCommon\fabric\components\legacyviewmanagerinterop\LegacyViewManagerInteropVi
ewEventEmitter.h" to "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-
windows\build\x86\Debug\Microsoft.ReactNative\\react-native-patched\\ReactCommon\\fabric\components\legacyviewmanagerin
terop\LegacyViewManagerInteropViewEventEmitter.h". Exceeded retry count of 10. Failed.  [C:\Users\pak\Documents\react-n
ative-windows-samples\samples\Calculator\node_modules\react-native-windows\Microsoft.ReactNative\Microsoft.ReactNative.
vcxproj]
C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\PropertySheets
\ReactPatches.targets(35,5): error MSB3021: Unable to copy file "C:\Users\pak\Documents\react-native-windows-samples\sa
mples\Calculator\node_modules\react-native\ReactCommon\fabric\components\legacyviewmanagerinterop\LegacyViewManagerInte
ropViewEventEmitter.h" to "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-na
tive-windows\build\x86\Debug\Microsoft.ReactNative\\react-native-patched\\ReactCommon\\fabric\components\legacyviewmana
gerinterop\LegacyViewManagerInteropViewEventEmitter.h". Could not find a part of the path 'C:\Users\pak\Documents\react
-native-windows-samples\samples\Calculator\node_modules\react-native-windows\build\x86\Debug\Microsoft.ReactNative\\rea
ct-native-patched\\ReactCommon\\fabric\components\legacyviewmanagerinterop\LegacyViewManagerInteropViewEventEmitter.h'.
 [C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\Microsoft.Re
actNative\Microsoft.ReactNative.vcxproj]
C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\PropertySheets
\ReactPatches.targets(35,5): error MSB3027: Could not copy "C:\Users\pak\Documents\react-native-windows-samples\samples
\Calculator\node_modules\react-native\ReactCommon\fabric\components\legacyviewmanagerinterop\LegacyViewManagerInteropCo
mponentDescriptor.h" to "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-nati
ve-windows\build\x86\Debug\Microsoft.ReactNative\\react-native-patched\\ReactCommon\\fabric\components\legacyviewmanage
rinterop\LegacyViewManagerInteropComponentDescriptor.h". Exceeded retry count of 10. Failed.  [C:\Users\pak\Documents\r
eact-native-windows-samples\samples\Calculator\node_modules\react-native-windows\Microsoft.ReactNative\Microsoft.ReactN
ative.vcxproj]
C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\PropertySheets
\ReactPatches.targets(35,5): error MSB3021: Unable to copy file "C:\Users\pak\Documents\react-native-windows-samples\sa
mples\Calculator\node_modules\react-native\ReactCommon\fabric\components\legacyviewmanagerinterop\LegacyViewManagerInte
ropComponentDescriptor.h" to "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react
-native-windows\build\x86\Debug\Microsoft.ReactNative\\react-native-patched\\ReactCommon\\fabric\components\legacyviewm
anagerinterop\LegacyViewManagerInteropComponentDescriptor.h". Could not find a part of the path 'C:\Users\pak\Documents
\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\build\x86\Debug\Microsoft.ReactNativ
e\\react-native-patched\\ReactCommon\\fabric\components\legacyviewmanagerinterop\LegacyViewManagerInteropComponentDescr
iptor.h'. [C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\Mic
rosoft.ReactNative\Microsoft.ReactNative.vcxproj]
C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\PropertySheets
\ReactPatches.targets(35,5): error MSB3027: Could not copy "C:\Users\pak\Documents\react-native-windows-samples\samples
\Calculator\node_modules\react-native\ReactCommon\fabric\components\legacyviewmanagerinterop\LegacyViewManagerInteropVi
ewEventEmitter.cpp" to "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-nativ
e-windows\build\x86\Debug\Microsoft.ReactNative\\react-native-patched\\ReactCommon\\fabric\components\legacyviewmanager
interop\LegacyViewManagerInteropViewEventEmitter.cpp". Exceeded retry count of 10. Failed.  [C:\Users\pak\Documents\rea
ct-native-windows-samples\samples\Calculator\node_modules\react-native-windows\Microsoft.ReactNative\Microsoft.ReactNat
ive.vcxproj]
C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\PropertySheets
\ReactPatches.targets(35,5): error MSB3021: Unable to copy file "C:\Users\pak\Documents\react-native-windows-samples\sa
mples\Calculator\node_modules\react-native\ReactCommon\fabric\components\legacyviewmanagerinterop\LegacyViewManagerInte
ropViewEventEmitter.cpp" to "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-
native-windows\build\x86\Debug\Microsoft.ReactNative\\react-native-patched\\ReactCommon\\fabric\components\legacyviewma
nagerinterop\LegacyViewManagerInteropViewEventEmitter.cpp". Could not find a part of the path 'C:\Users\pak\Documents\r
eact-native-windows-samples\samples\Calculator\node_modules\react-native-windows\build\x86\Debug\Microsoft.ReactNative\
\react-native-patched\\ReactCommon\\fabric\components\legacyviewmanagerinterop\LegacyViewManagerInteropViewEventEmitter
.cpp'. [C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\Micros
oft.ReactNative\Microsoft.ReactNative.vcxproj]

Done Building Project "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native
-windows\Microsoft.ReactNative\Microsoft.ReactNative.vcxproj" (default targets) -- FAILED.

Done Building Project "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\windows\Calculator\Calcul
ator.vcxproj.metaproj" (default targets) -- FAILED.

Done Building Project "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\windows\Calculator.sln" (
default targets) -- FAILED.

@0xbs0d
Copy link

0xbs0d commented Jun 10, 2020

It works for me now.

I deleted the local files, pulled the repo from github. Then i did yarn install and npx react-native run-windows and it all went smoothly.

Thank you @asklar

@asklar
Copy link
Member

asklar commented Jun 12, 2020

@asklar hi, I cloned a new version and did everything from scratch.
Now on npx react-native run-windows:
image
Tried to launch it in VS2019 still the same problems 😔
First command with --logging:

C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\PropertySheets
\ReactPatches.targets(35,5): error MSB3027: Could not copy "C:\Users\pak\Documents\react-native-windows-samples\samples
\Calculator\node_modules\react-native\ReactCommon\fabric\components\legacyviewmanagerinterop\LegacyViewManagerInteropVi
ewEventEmitter.h" to "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-
windows\build\x86\Debug\Microsoft.ReactNative\\react-native-patched\\ReactCommon\\fabric\components\legacyviewmanagerin
terop\LegacyViewManagerInteropViewEventEmitter.h". Exceeded retry count of 10. Failed.  [C:\Users\pak\Documents\react-n
ative-windows-samples\samples\Calculator\node_modules\react-native-windows\Microsoft.ReactNative\Microsoft.ReactNative.
vcxproj]
C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\PropertySheets
\ReactPatches.targets(35,5): error MSB3021: Unable to copy file "C:\Users\pak\Documents\react-native-windows-samples\sa
mples\Calculator\node_modules\react-native\ReactCommon\fabric\components\legacyviewmanagerinterop\LegacyViewManagerInte
ropViewEventEmitter.h" to "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-na
tive-windows\build\x86\Debug\Microsoft.ReactNative\\react-native-patched\\ReactCommon\\fabric\components\legacyviewmana
gerinterop\LegacyViewManagerInteropViewEventEmitter.h". Could not find a part of the path 'C:\Users\pak\Documents\react
-native-windows-samples\samples\Calculator\node_modules\react-native-windows\build\x86\Debug\Microsoft.ReactNative\\rea
ct-native-patched\\ReactCommon\\fabric\components\legacyviewmanagerinterop\LegacyViewManagerInteropViewEventEmitter.h'.
 [C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\Microsoft.Re
actNative\Microsoft.ReactNative.vcxproj]
C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\PropertySheets
\ReactPatches.targets(35,5): error MSB3027: Could not copy "C:\Users\pak\Documents\react-native-windows-samples\samples
\Calculator\node_modules\react-native\ReactCommon\fabric\components\legacyviewmanagerinterop\LegacyViewManagerInteropCo
mponentDescriptor.h" to "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-nati
ve-windows\build\x86\Debug\Microsoft.ReactNative\\react-native-patched\\ReactCommon\\fabric\components\legacyviewmanage
rinterop\LegacyViewManagerInteropComponentDescriptor.h". Exceeded retry count of 10. Failed.  [C:\Users\pak\Documents\r
eact-native-windows-samples\samples\Calculator\node_modules\react-native-windows\Microsoft.ReactNative\Microsoft.ReactN
ative.vcxproj]
C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\PropertySheets
\ReactPatches.targets(35,5): error MSB3021: Unable to copy file "C:\Users\pak\Documents\react-native-windows-samples\sa
mples\Calculator\node_modules\react-native\ReactCommon\fabric\components\legacyviewmanagerinterop\LegacyViewManagerInte
ropComponentDescriptor.h" to "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react
-native-windows\build\x86\Debug\Microsoft.ReactNative\\react-native-patched\\ReactCommon\\fabric\components\legacyviewm
anagerinterop\LegacyViewManagerInteropComponentDescriptor.h". Could not find a part of the path 'C:\Users\pak\Documents
\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\build\x86\Debug\Microsoft.ReactNativ
e\\react-native-patched\\ReactCommon\\fabric\components\legacyviewmanagerinterop\LegacyViewManagerInteropComponentDescr
iptor.h'. [C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\Mic
rosoft.ReactNative\Microsoft.ReactNative.vcxproj]
C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\PropertySheets
\ReactPatches.targets(35,5): error MSB3027: Could not copy "C:\Users\pak\Documents\react-native-windows-samples\samples
\Calculator\node_modules\react-native\ReactCommon\fabric\components\legacyviewmanagerinterop\LegacyViewManagerInteropVi
ewEventEmitter.cpp" to "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-nativ
e-windows\build\x86\Debug\Microsoft.ReactNative\\react-native-patched\\ReactCommon\\fabric\components\legacyviewmanager
interop\LegacyViewManagerInteropViewEventEmitter.cpp". Exceeded retry count of 10. Failed.  [C:\Users\pak\Documents\rea
ct-native-windows-samples\samples\Calculator\node_modules\react-native-windows\Microsoft.ReactNative\Microsoft.ReactNat
ive.vcxproj]
C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\PropertySheets
\ReactPatches.targets(35,5): error MSB3021: Unable to copy file "C:\Users\pak\Documents\react-native-windows-samples\sa
mples\Calculator\node_modules\react-native\ReactCommon\fabric\components\legacyviewmanagerinterop\LegacyViewManagerInte
ropViewEventEmitter.cpp" to "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-
native-windows\build\x86\Debug\Microsoft.ReactNative\\react-native-patched\\ReactCommon\\fabric\components\legacyviewma
nagerinterop\LegacyViewManagerInteropViewEventEmitter.cpp". Could not find a part of the path 'C:\Users\pak\Documents\r
eact-native-windows-samples\samples\Calculator\node_modules\react-native-windows\build\x86\Debug\Microsoft.ReactNative\
\react-native-patched\\ReactCommon\\fabric\components\legacyviewmanagerinterop\LegacyViewManagerInteropViewEventEmitter
.cpp'. [C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\Micros
oft.ReactNative\Microsoft.ReactNative.vcxproj]

Done Building Project "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native
-windows\Microsoft.ReactNative\Microsoft.ReactNative.vcxproj" (default targets) -- FAILED.

Done Building Project "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\windows\Calculator\Calcul
ator.vcxproj.metaproj" (default targets) -- FAILED.

Done Building Project "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\windows\Calculator.sln" (
default targets) -- FAILED.

@lexprom hmm looks like you run into problems trying to copy some files... the only thing that comes to mind is maybe you forgot to run yarn ? You can see the calculator app building in the CI, maybe you can follow the steps in the pipeline (see .github/workflows/samples-CI.yml)

@asklar asklar closed this as completed Jun 12, 2020
@asklar asklar linked a pull request Jun 12, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants