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

Unable to run Chakra on apps in repo #14192

Open
TatianaKapos opened this issue Dec 10, 2024 · 3 comments
Open

Unable to run Chakra on apps in repo #14192

TatianaKapos opened this issue Dec 10, 2024 · 3 comments

Comments

@TatianaKapos
Copy link
Contributor

TatianaKapos commented Dec 10, 2024

Problem Description

When trying to run Chakra on playground and testerapp (have switched UseHermes flag to false) the following error message appears
Image
This makes it hard to debug problems in integrations that are specific to Chakra

Steps To Reproduce

  1. Use the "Chakra" option on playground
  2. RnTester won't run

Expected Results

  1. App runs with chakra

CLI version

npx @react-native-community/cli -v

Environment

npx @react-native-community/cli info

Community Modules

No response

Target Platform Version

10.0.22621

Target Device(s)

Desktop

Visual Studio Version

Visual Studio 2022

Build Configuration

Debug

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

No response

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs: Triage 🔍 New issue that needs to be reviewed by the issue management team (label applied by bot) label Dec 10, 2024
@jonthysell jonthysell added this to the 0.77 milestone Dec 12, 2024
@jonthysell
Copy link
Contributor

Searching online, this appears to be an error with using a new RegEx feature in JS that an older JS engine doesn't understand.

In the past, when we've run into an issue where Chakra can't use some bit of new JS syntax, we find out what the new syntax is and then add a new babel transformer plugin to our RN babel config to transform it into something Chakra can run.

This may or may not be possible with RegEx features specifically though, and we may need to re-write the offending code (if possible) in a patch.

Or we just stop supporting Chakra ;)

@jonthysell jonthysell removed the Needs: Triage 🔍 New issue that needs to be reviewed by the issue management team (label applied by bot) label Dec 12, 2024
@TatianaKapos
Copy link
Contributor Author

TatianaKapos commented Dec 12, 2024

@jonthysell Will look into it! And just clarifying, this error isn't coming for the integration (although the Chakra e2etests are failing on the integration at ScrollView). This Error is coming from trying to run any Chakra app on the main branch, which means the only way to debug Chakra error is through the CI which just takes an hour to build and is very time consuming.

Possibly I'm missing a step when trying to run Chakra? I've set the useHermes flag to false and clicked the Chakra option on playground

@TatianaKapos
Copy link
Contributor Author

fixed on integration!

@TatianaKapos TatianaKapos removed their assignment Dec 13, 2024
@TatianaKapos TatianaKapos modified the milestones: 0.77, Backlog Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants