We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 getting a lot of errors when using ui with latest nextjs project
https://codesandbox.com/
next js is not supported ! Next.js is not supported getting a lot of errors when using ui with latest nextjs project
latest
No response
The text was updated successfully, but these errors were encountered:
@boussaidev add this to your next.config.ts
next.config.ts
You have to configure react-native-web to alias all react-native import with react-native-web
react-native-web
react-native
import { withGluestackUI } from "@gluestack/ui-next-adapter"; import type { NextConfig } from "next"; const nextConfig: NextConfig = { transpilePackages: [ "react-native-reanimated", "nativewind", "react-native-css-interop", "@gluestack-ui/nativewind-utils", "@gluestack-ui/icon", "@gluestack-ui/button", "@gluestack-ui/utils", "@gluestack-ui/toast", "@gluestack-ui/overlay", ], experimental: { turbo: { resolveAlias: { "react-native": "react-native-web", }, resolveExtensions: [ ".web.js", ".web.jsx", ".web.ts", ".web.tsx", ".mdx", ".tsx", ".ts", ".jsx", ".js", ".mjs", ".json", ], }, }, webpack: (config) => { config.resolve.alias = { ...(config.resolve.alias || {}), // Transform all direct `react-native` imports to `react-native-web` "react-native$": "react-native-web", }; config.resolve.extensions = [ ".web.js", ".web.jsx", ".web.ts", ".web.tsx", ...config.resolve.extensions, ]; return config; }, }; export default withGluestackUI(nextConfig);
Sorry, something went wrong.
vaibhk20
No branches or pull requests
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 !
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: