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

[MACOS App Development][react Native Build Failure] Cannot find type 'Color' in scope #1212

Closed
himanshu-1034 opened this issue Apr 2, 2024 · 2 comments · Fixed by #1218
Closed

Comments

@himanshu-1034
Copy link

Description

Our team had built an application using react native that runs on android and IOS. the app was running very fluently. Now there is a requirement to bring that same same UI to MacOS based systems as well so i followed the steps https://microsoft.github.io/react-native-windows/docs/rnm-getting-started and managed to do a pod install with node 16.

but now when i am trying to run the application, i am stuck on this error. browsing is not helping, kindly help whoever gets anything

Steps to Reproduce

  1. [on the react native application already supporting android/ios]
  2. [install the dependency of macos]
  3. [build the project]
  4. [Error saying Cannot find type 'Color' in scope will appear, see the photo]
image

Expected behavior:
[I should see the app running]

Actual behavior: [Build failure with errors]

Minimal reproduction

see image

React Native Environment

The project was already running on android and ios devices, installation of macos was done after that.

"react": "18.2.0",
node version v16.18.0
react native version
react-native-cli: 2.0.1
react-native: 0.71.2

Lottie Version

"lottie-ios": "^4.4.1",
"lottie-react-native": "^6.7.0",

Also, if lottie react native is not supported for macos, can you please head me to the page with the help of which i can avoid installing this pod for macos env.

Thanks in advance!

@TheRogue76 TheRogue76 linked a pull request Apr 7, 2024 that will close this issue
@TheRogue76
Copy link
Collaborator

Hey @himanshu-1034
I made the PR, once the newest version is out (6.7.2 or 6.8.0) it should be available.

@TheRogue76
Copy link
Collaborator

Also, please do not install lottie-ios manually. Please remove it from your package.json, and let LRN pick it's dependency correctly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants