Skip to content

react-native run-windows command is failing at build step #3263

Closed

Description

Per Marlene Cota (@marlenecota) this has started occurring with msbuild version update to 16.3.0.46305. This is causing the CLI to not work anymore.

Workaround is to build the project in VS instead of msbuild, run yarn start and run the project from VS.

Activity

  1. ghost added
    Needs: Triage 🔍
    on Sep 26, 2019
  2. licanhua commented on Sep 26, 2019

    @licanhua
    Contributor

    The error is like this:
    F:\repo\react-native-windows\node_modules.folly\folly-2019.08.12.00\folly\portability\Builtins.h(44,25): error C2373: '__builtin_clz': redefinition; different type modifiers (compiling source file CustomViewManager.cpp) [F:\repo\react-native-windows\packages\react-native-windows-extended\windows\react-native-windows-extended.vcxproj]

  3. added a commit that references this issue on Sep 26, 2019
  4. added and removed
    Needs: Triage 🔍
    on Sep 27, 2019
  5. marlenecota commented on Sep 30, 2019

    @marlenecota
    Contributor

    Fixed by #3279

  6. Joshua-David commented on Nov 18, 2019

    @Joshua-David

    Has this actually been resolved? I get the msbuild error when running react-native run-windows

    My react native windows version is: ^0.60.0-vnext.71

  7. acoates-ms commented on Nov 18, 2019

    @acoates-ms
    Contributor

    Can you try running react-native run-windows --logging to see if that provides more information on what is failing?

  8. 55 remaining items

  9. asklar commented on Aug 24, 2022

    @asklar
    Member

    Can you try manually removing the BuildTools edition first (should be possible in the Visual Studio installer)

  10. luthfianto commented on Aug 24, 2022

    @luthfianto

    Alexander Sklar (@asklar) yes, currently still on progress

  11. luthfianto commented on Aug 24, 2022

    @luthfianto

    Alexander Sklar (@asklar) yes, already removed

  12. luthfianto commented on Aug 24, 2022

    @luthfianto

    Alexander Sklar (@asklar) since I have error with the CLI, should I install the VS2019 community (and MSVC and UWP) via the VS Installer instead?

  13. luthfianto commented on Aug 24, 2022

    @luthfianto

    I solved the VS installation problems by:

  14. removed
    Needs: Attention 👋
    on Aug 25, 2022
  15. robozb commented on Dec 5, 2022

    @robozb

    Same here, the system is completely useless, I tried everything:

    npx react-native run-windows
    ‼ No public VS release found
    i Trying pre-release VS
    × Could not find MSBuild with VCTools for Visual Studio 16.7 or later. Make sure all required components
    have been installed
    Command failed. Re-run the command with --logging for more information.

  16. ghost added
    Needs: Attention 👋
    on Dec 5, 2022
  17. chrisglein commented on Dec 5, 2022

    @chrisglein
    Member

    Same here, the system is completely useless, I tried everything:

    npx react-native run-windows ‼ No public VS release found i Trying pre-release VS × Could not find MSBuild with VCTools for Visual Studio 16.7 or later. Make sure all required components have been installed Command failed. Re-run the command with --logging for more information.

    The original issue here is a few years old, and even the resolution is a few months old. It'd be helpful to get a fresh issue that includes the environment information requested by the template.

  18. removed
    Needs: Attention 👋
    on Dec 5, 2022
  19. robozb commented on Dec 6, 2022

    @robozb

    Dear Chris Glein (@chrisglein),

    I will share the system infos, but until then, would you be so kind to link me, what was the solution to the above issue?

    Thanks: Bela

  20. ghost added
    Needs: Attention 👋
    on Dec 6, 2022
  21. chrisglein commented on Dec 6, 2022

    @chrisglein
    Member

    Dear Chris Glein (@chrisglein),

    I will share the system infos, but until then, would you be so kind to link me, what was the solution to the above issue?

    Thanks: Bela

    I'm not confident there's only one issue and one solution in this thread. The open-ended title has encouraged it to be a bit of a gathering place for many related issues over the past years, and follow ups after the original issue was fixed. I'll lock the thread to encourage others to file fresh and actionable issues with the latest environment info scripts. That helps us better group related issues.

  22. removed
    Needs: Attention 👋
    on Dec 6, 2022
  23. locked as resolved and limited conversation to collaborators on Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions