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

Build error in example/windows/example.sln with Microsoft.ReactNative, 'Mso::MustBeNoExceptVoidFunctor: not a noexcept callable functor returning void' #229

Closed
ChrisGuzak opened this issue Oct 17, 2022 · 3 comments
Labels
bug Something isn't working Needs: Triage 🔍

Comments

@ChrisGuzak
Copy link
Member

ChrisGuzak commented Oct 17, 2022

Problem Description

5>------ Build started: Project: Microsoft.ReactNative, Configuration: Debug x64 ------
5>C:\Users\chrisg.NTDEV\source\repos\react-native-xaml\node_modules\react-native-windows\Mso\dispatchQueue\dispatchQueue.h(728,17): error C2338: static_assert failed: 'Mso::MustBeNoExceptVoidFunctor: not a noexcept callable functor returning void'
5>C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\XamlCompiler\Microsoft.Windows.UI.Xaml.Common.targets(486,5): error MSB4181: The "CompileXaml" task returned false but did not log an error.

Steps To Reproduce

  1. clone the repo, follow the directions to enable building (run yarn, etc.)
  2. open the example\windows\example.sln
  3. choose debug/x64 configuration
  4. project.build

this is compiling pch\pch.cpp

Note, I upgraded the toolset to v143, but I saw the same error when I tried to build with v140 so don't think this is specific to the toolset.

Expected Results

build works

Environment

npx react-native info
Get-ChildItem : Cannot find path 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise C:\Program Files
(x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\Extensions\' because it does not exist.
At C:\Users\chrisg.NTDEV\source\repos\react-native-xaml\node_modules\react-native-windows\Scripts\rnw-dependencies.ps1:
174 char:19
+ ...   $natvis = Get-ChildItem "$vsPath\Common7\IDE\Extensions\cppwinrt.na ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Program File...IDE\Extensions\:String) [Get-ChildItem], ItemNotFound
   Exception
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand

info Fetching system and libraries information...
System:
    OS: Windows 10 10.0.22621
    CPU: (12) x64 Intel(R) Xeon(R) W-2133 CPU @ 3.60GHz
    Memory: 8.94 GB / 31.73 GB
  Binaries:
    Node: 16.14.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 8.3.1 - C:\Program Files\nodejs\npm.CMD
    Watchman: Not Found
  SDKs:
    Android SDK: Not Found
    Windows SDK:
      AllowDevelopmentWithoutDevLicense: Enabled
      AllowAllTrustedApps: Enabled
      Versions: 10.0.18362.0, 10.0.19041.0
  IDEs:
    Android Studio: Not Found
    Visual Studio: 17.3.32929.385 (Visual Studio Enterprise 2022), 16.11.32929.386 (Visual Studio Enterprise 2019)
  Languages:
    Java: Not Found
  npmPackages:
    @react-native-community/cli: Not Found
    react: Not Found
    react-native: Not Found
    react-native-windows: Not Found
  npmGlobalPackages:
    *react-native*: Not Found
@ChrisGuzak ChrisGuzak added the bug Something isn't working label Oct 17, 2022
@ghost ghost added the Needs: Triage 🔍 label Oct 17, 2022
@asklar
Copy link
Member

asklar commented Oct 17, 2022

this is an RNW bug that has already been fixed microsoft/react-native-windows#9559
so the project needs to update to a newer version of RNW

@asklar asklar closed this as completed Oct 17, 2022
@ChrisGuzak
Copy link
Member Author

@asklar thanks! how do I update to the newer RNW? is that something I should try?

@ChrisGuzak ChrisGuzak changed the title Build error with Microsoft.ReactNative, 'Mso::MustBeNoExceptVoidFunctor: not a noexcept callable functor returning void' Build error in example/windows/example.sln with Microsoft.ReactNative, 'Mso::MustBeNoExceptVoidFunctor: not a noexcept callable functor returning void' Oct 18, 2022
@ChrisGuzak
Copy link
Member Author

I updated the title. this is in the example in this project. example/windows/example.sln

@ghost ghost locked as resolved and limited conversation to collaborators Nov 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working Needs: Triage 🔍
Projects
None yet
Development

No branches or pull requests

2 participants