-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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/assets
ships Flow instead of JS
#36343
Comments
|
Related to this other issue: #35263 (comment) (cc @necolas @lunaleaps) |
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This issue was closed because it has been stalled for 7 days with no activity. |
Any or work arround for this. For using webpack this is documented and mentioned -- https://necolas.github.io/react-native-web/docs/multi-platform/#compiling-and-bundling -- but we're using Vite, and this issue started to pop up on react native 0.74 Update: For using Vite, I've found a vite plugin that includes an EsBuild plugin using |
Description
The assets package is shipping flow JS directly, making it break when importing on Next.js. It should build prior to publishing and remove types.
See: https://github.com/facebook/react-native/blob/main/packages/assets/registry.js
Let me know if I should PR, though I know TypeScript and not flow. Could also migrate it.
React Native Version
0.71
Output of
npx react-native info
N/A
Steps to reproduce
See https://github.com/facebook/react-native/blob/main/packages/assets/registry.js
Snack, code example, screenshot, or link to a repository
If you need a repro, you can try importing
@react-native/assets
in Next.js. It's pretty self-explanatory though.Thanks!
The text was updated successfully, but these errors were encountered: