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

React native windows is causing conflicts with react-native 0.71.0 and up #11093

Closed
matinzd opened this issue Jan 16, 2023 · 5 comments
Closed
Assignees
Labels
Milestone

Comments

@matinzd
Copy link

matinzd commented Jan 16, 2023

Problem Description

It seems react-native-windows is causing some conflicts with the new react-native version 0.71.0. Removing react-native-windows solved the issue.

* What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.
   > Cannot resolve external dependency com.facebook.flipper:flipper:0.125.0 because no repositories are defined.
     Required by:
         project :app
   > Cannot resolve external dependency com.facebook.flipper:flipper-network-plugin:0.125.0 because no repositories are defined.
     Required by:
         project :app
   > Cannot resolve external dependency com.facebook.flipper:flipper-fresco-plugin:0.125.0 because no repositories are defined.
     Required by:
         project :app
   > Cannot resolve external dependency com.facebook.react:react-android because no repositories are defined.
     Required by:
         project :app
   > Cannot resolve external dependency androidx.swiperefreshlayout:swiperefreshlayout:1.0.0 because no repositories are defined.
     Required by:
         project :app
   > Cannot resolve external dependency com.facebook.react:hermes-android because no repositories are defined.
     Required by:
         project :app
   > Cannot resolve external dependency com.facebook.react:react-native:+ because no repositories are defined.
     Required by:
         project :app > project :react-native-community_slider
         project :app > project :react-native-picker_picker

Steps To Reproduce

  1. Create a new react-native project npx react-native init RNWithWindows
  2. Install react-native-windows
  3. Try running the android app

Expected Results

The android app should build without problem.

CLI version

0.71.0

Environment

System:
    OS: macOS 13.0
    CPU: (10) arm64 Apple M1 Pro
    Memory: 625.63 MB / 32.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.18.1 - ~/.nvm/versions/node/v16.18.1/bin/node
    Yarn: 3.2.3 - ~/.nvm/versions/node/v16.18.1/bin/yarn
    npm: 5.1.0 - ~/work/personal/lottie-react-native/node_modules/.bin/npm
    Watchman: Not Found
  Managers:
    CocoaPods: 1.11.3 - /Users/matin/.rvm/gems/ruby-2.7.6/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 22.1, iOS 16.1, macOS 13.0, tvOS 16.1, watchOS 9.1
    Android SDK: Not Found
  IDEs:
    Android Studio: 2021.3 AI-213.7172.25.2113.9123335
    Xcode: 14.1/14B47b - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.17 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 18.2.0 => 18.1.0 
    react-native: 0.71.0 => 0.71.0 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Target Platform Version

None

Target Device(s)

Desktop

Visual Studio Version

None

Build Configuration

None

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

Run yarn paper:android in the following project:

https://github.com/lottie-react-native/lottie-react-native/tree/chore/upgrade_examples

@matinzd matinzd added the bug label Jan 16, 2023
@ghost ghost added the Needs: Triage 🔍 New issue that needs to be reviewed by the issue management team (label applied by bot) label Jan 16, 2023
matinzd added a commit to lottie-react-native/lottie-react-native that referenced this issue Jan 17, 2023
BREAKING CHANGE: remove react-native-windows support on paper due to microsoft/react-native-windows#11093
matinzd added a commit to lottie-react-native/lottie-react-native that referenced this issue Jan 17, 2023
@chrisglein
Copy link
Member

react-native-windows 0.71 hasn't been released yet. It should be released on Monday. Currently it's only available in preview. I don't see it listed in your environment information there. Did you capture that after removing it from the project? I'm curious what version you had for RNW.

@chrisglein chrisglein added Needs: Author Feedback The issue/PR needs activity from its author (label drives bot activity) and removed Needs: Triage 🔍 New issue that needs to be reviewed by the issue management team (label applied by bot) labels Jan 20, 2023
@matinzd
Copy link
Author

matinzd commented Jan 20, 2023

Hey @chrisglein,
But should this affect the android build by any chance? It's a bit weird to me. We had version 0.70.10.

@ghost ghost added Needs: Attention 👋 An issue that had been tagged "Needs: Author Feedback" has received activity (label applied by bot) and removed Needs: Author Feedback The issue/PR needs activity from its author (label drives bot activity) labels Jan 20, 2023
@jonthysell jonthysell added Needs: Author Feedback The issue/PR needs activity from its author (label drives bot activity) and removed Needs: Attention 👋 An issue that had been tagged "Needs: Author Feedback" has received activity (label applied by bot) labels Jan 23, 2023
@jonthysell jonthysell added this to the 0.71 milestone Jan 23, 2023
@jonthysell
Copy link
Contributor

It shouldn't unless some other shared dependency got bumped. Can you try again with the newly released RNW 0.71?

@jonthysell
Copy link
Contributor

@chiaramooney Can you follow up with this after they respond?

@matinzd
Copy link
Author

matinzd commented Jan 23, 2023

Cool @jonthysell. It's working again. Thanks :)

@matinzd matinzd closed this as completed Jan 23, 2023
@ghost ghost added Needs: Attention 👋 An issue that had been tagged "Needs: Author Feedback" has received activity (label applied by bot) and removed Needs: Author Feedback The issue/PR needs activity from its author (label drives bot activity) labels Jan 23, 2023
matinzd added a commit to lottie-react-native/lottie-react-native that referenced this issue Jan 23, 2023
@jonthysell jonthysell removed the Needs: Attention 👋 An issue that had been tagged "Needs: Author Feedback" has received activity (label applied by bot) label Jan 26, 2023
alyssaharvey3 added a commit to alyssaharvey3/react-native-lottie that referenced this issue Aug 2, 2023
BREAKING CHANGE: remove react-native-windows support on paper due to microsoft/react-native-windows#11093
alyssaharvey3 added a commit to alyssaharvey3/react-native-lottie that referenced this issue Aug 2, 2023
alyssaharvey3 added a commit to alyssaharvey3/react-native-lottie that referenced this issue Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants