react-native-windows icon indicating copy to clipboard operation
react-native-windows copied to clipboard

[0.74] New Architecture fails build with MDMERGE : error MDM2009: Duplicate type Microsoft.UI.Xaml.* when added some native libraries.

Open jihoobyeon opened this issue 6 months ago • 4 comments

Problem Description

I am suffering same symptom as #7226, but build fails every time, not only first time. My app is 0.74 New architecture app, made by instructions mentioned here.

Steps To Reproduce

  1. Make a new RNW app with New architecture.
  2. Add npm packages react-native-permissions and @babylonjs/react-native-windows-0-71 to the app.
  3. Build it.

Expected Results

App should start.

CLI version

13.6.9

Environment

System:
  OS: Windows 10 10.0.19045
  CPU: "(4) x64 AMD Ryzen 3 2200U with Radeon Vega Mobile Gfx  "
  Memory: 24.25 GB / 31.63 GB
Binaries:
  Node:
    version: 20.10.0
    path: C:\Program Files\nodejs\node.EXE
  Yarn:
    version: 3.6.4
    path: ~\AppData\Roaming\npm\yarn.CMD
  npm:
    version: 10.8.2
    path: C:\Program Files\nodejs\npm.CMD
  Watchman: Not Found
SDKs:
  Android SDK: Not Found
  Windows SDK:
    AllowDevelopmentWithoutDevLicense: Enabled
    AllowAllTrustedApps: Enabled
    Versions:
      - 10.0.19041.0
      - 10.0.22000.0
      - 10.0.22621.0
IDEs:
  Android Studio: Not Found
  Visual Studio:
    - 17.11.35219.272 (Visual Studio Community 2022)
Languages:
  Java: 21.0.3
  Ruby: Not Found
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.74.5
    wanted: 0.74.5
  react-native-windows:
    installed: 0.74.16
    wanted: ^0.74.16
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found

Community Modules

"react-native-permissions": 4.1.5 "@babylonjs/core": 7.21.5 "@babylonjs/havok": 1.3.8 "@babylonjs/react-native": 1.8.6 "@babylonjs/react-native-windows-0-71": 1.8.6

Target Platform Version

10.0.19041

Target Device(s)

Desktop

Visual Studio Version

Visual Studio 2022

Build Configuration

Debug

Snack, code example, screenshot, or link to a repository

No response

jihoobyeon avatar Aug 21 '24 10:08 jihoobyeon