-
-
Notifications
You must be signed in to change notification settings - Fork 84
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
Package Compatibility #287
Comments
|
Is there an exposed api that will allow people to get their own package support working without waiting for official support? |
I guess that's what the deps config is for. |
|
export default {
plugins: [
one(),
tamaguiPlugin(),
],
resolve: {
alias: {
"expo-modules-core": path.resolve(
__dirname,
"node_modules/expo-modules-core/",
),
},
},
} satisfies UserConfig; |
@natew should deps: {
'expo-linear-gradient': {
'**/*.js': ['flow', 'swc'],
},
}, |
Yes i think we'd probably want that, likely we need to patch all expo module somehow, I want to set up a better way to do this internally automatically, but for now I'd accept a pr to |
@natew I can submit a PR for this. |
I think a separate issue to keep track of the patched expo modules would be better. |
This issue aims to outline all the package compatibility issues with One as One approaches it's stable release.
I will update the issue as I become aware of other packages causing issues.
Expo packages
yarn dev
I get"The JSX syntax extension is not currently enabled"
caused by expo using.js
files instead of.jsx
.yarn dev
I get"The JSX syntax extension is not currently enabled"
caused by expo using.js
files instead of.jsx
.13.0.2
1.1.341
In theory, we should be able to fix these using One's Vite config deps (see docs). Some messages on One Discord suggest there might be a second layer to this issue.
Misc
"x Build failed in 6.52s, error [vite:json] [plugin vite:json] virtual:rn-internals:react-native/package.json: Failed to parse JSON file."
The text was updated successfully, but these errors were encountered: