-
Notifications
You must be signed in to change notification settings - Fork 127
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
Next.js is not supported ! #2657
Comments
@boussaidev add this to your You have to configure
|
@Under-Warz It almost solved things for me, still getting ⨯ ./node_modules/react-native-safe-area-context/lib/module/specs/NativeSafeAreaProvider.js:1:1
Module not found: Can't resolve 'react-native/Libraries/Utilities/codegenNativeComponent'
> 1 | import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2 | export default codegenNativeComponent('RNCSafeAreaProvider');
3 | //# sourceMappingURL=NativeSafeAreaProvider.js.map
https://nextjs.org/docs/messages/module-not-found
./node_modules/react-native-safe-area-context/lib/module/specs/NativeSafeAreaView.js:1:1
Module not found: Can't resolve 'react-native/Libraries/Utilities/codegenNativeComponent'
> 1 | import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2 | export default codegenNativeComponent('RNCSafeAreaView', {
3 | interfaceOnly: true
4 | }); any tips about that? |
@Under-Warz where is this documented? how did you arrive at this next-config? I cloned a Gluestack starter project (dashboard) and I have a similar but different next.config included in the project, but similarly there are an incredible amount of components that break the dev server as soon as I import them... This is the config from the dashboard starter project:
|
Description
Next.js is not supported getting a lot of errors when using ui with latest nextjs project
CodeSandbox/Snack link
https://codesandbox.com/
Steps to reproduce
next js is not supported !
![Screenshot 2025-01-01 at 20 32 37](https://private-user-images.githubusercontent.com/174712778/399585215-9e3a0a20-4db3-41f6-8be6-4f4cb73a4baa.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2ODkwMjcsIm5iZiI6MTczOTY4ODcyNywicGF0aCI6Ii8xNzQ3MTI3NzgvMzk5NTg1MjE1LTllM2EwYTIwLTRkYjMtNDFmNi04YmU2LTRmNGNiNzNhNGJhYS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNlQwNjUyMDdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01YzQ0Njc2OTIyZDUwYWY4NzZhOWM0Njg4OTY3MTQwMzNkYzk3Y2VlZDZkZDM4YmI3NzQ1ZjZkZDZmY2U3YzdkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.ofCxOS1ASd603GMnYT0b3za9wFwWF_v4cuKjW768W6k)
Next.js is not supported
getting a lot of errors when using ui with latest nextjs project
gluestack-ui Version
latest
Platform
Other Platform
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: