Open AlenToma opened 2 years ago
According to the docs, 16299 should be supported as a min version. Did your project build fine before adding the library reference?
I'm not sure what sorts of project differences result from using create-react-native-library
. I don't know what the support level is for that on Windows versions. Typically we focus on the steps here. Is it possible to create your module with the steps in that documentation?
Just followed the same steps and I'm not able to reproduce this:
npx create-react-native-library react-native-awesome-module
cd .\react-native-awesome-module\
yarn upgrade react@18.0.0 --dev
yarn upgrade react-native@0.69.0 --dev
npx react-native-windows-init --version latest --projectType lib --language cs --overwrite
npx react-native run-windows --logging --sln .\windows\ReactNativeAwesomeModule.sln --proj .\windows\ReactNativeAwesomeModule\ReactNativeAwesomeModule.csproj
The library builds fine. But when adding it in the example library that was created by 'npx react-native-windows-init' it will trigger an error with the above logs.
Create React-native library adds in a windows folder automatically, but it somehow have conflict when adding it as a referens to the example project.
I hope this is clear enough as it should be easy to repreduce
@JunielKatarn since the error happens during nuget restore, I'm wondering if this might be related to the PackageReference support. Could you please take a look? Thanks!
@JunielKatarn since the error happens during nuget restore, I'm wondering if this might be related to the PackageReference support. Could you please take a look? Thanks!
Sure thing.
Provisinally adding the PackageReference
label to keep track until fixed or reassigned.
Maybe same kind of issue https://github.com/microsoft/react-native-windows/issues/10059
Problem Description
Hi, I am trying to build a library that has support for
react-native-windows
.The problem is that when I build the library trigger an error build, see below
LOGS
Steps To Reproduce
create-react-native-library
react-native
project and add windows usingnpx react-native-windows-init --language cs --overwrite
npx react-native run-windows
Here is my Library Package.JSON.
here my exmaple Project package.json
Expected Results
should be build and run without any issue
CLI version
8.0.2
Environment
Target Platform Version
10.0.16299
Target Device(s)
Desktop
Visual Studio Version
No response
Build Configuration
Debug
Snack, code example, screenshot, or link to a repository
No response