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

Update to 0.76 #153

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Update to 0.76 #153

wants to merge 3 commits into from

Conversation

chrisglein
Copy link
Owner

@chrisglein chrisglein commented Dec 18, 2024

Main change here is to create a new app from template on 76 and bring the app logic over.

This causes this to be hit: facebook/react-native#46355
As manifested by this error:

 ERROR  SyntaxError: D:\GitHub\artificial-chat2\node_modules\react-native-windows\Libraries\vendor\emitter\EventEmitter.js: Unexpected token, expected "]" (39:5)

  37 |
  38 | type Registry<TEventToArgsMap: {...}> = {
> 39 |   [K in keyof TEventToArgsMap]: Set<Registration<TEventToArgsMap[K]>>,
     |      ^
  40 | };
  41 |
  42 | /**

That can be mitigated by removing the babel.config.js changes, but that brings back this: microsoft/fluentui-react-native#1891
As manifested by this error (release builds only):

- Build failed with message EXEC : error node_modules\@fluentui-react-native\checkbox\lib-commonjs\Checkbox.js: D:\a\artificial-chat\artificial-chat\node_modules\@fluentui-react-native\checkbox\lib-commonjs\Checkbox.js: pragma and pragmaFrag cannot be set when runtime is automatic. [D:\a\artificial-chat\artificial-chat\windows\artificialChat\artificialChat.vcxproj]. Check your build configuration.

So... what to do? Either figure out the compatible version of useTransformReactJSXExperimental with the 0.76 Flow issues. Or go back and patch fluentui-react-native to not have those issues in release builds.

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 this pull request may close these issues.

1 participant