-
-
Notifications
You must be signed in to change notification settings - Fork 278
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Reproduction link: <link>
Describe the bug
in cli, doctor commands doe not read inlineRem
bunx @react-native-reusables/cli@latest doctorwith --bun same result
Output:
✖ Potentially Misconfigured Files (1)
• Metro Config
↪ The inlineRem is missing
📘 Docs: https://reactnativereusables.com/docs/installation/manual#update-the-default-inlined-rem-value
my metro.config.js:
// Learn more https://docs.expo.io/guides/customizing-metro
const { getDefaultConfig } = require('expo/metro-config')
const { withNativeWind } = require('nativewind/metro')
/** @type {import('expo/metro-config').MetroConfig} */
const config = getDefaultConfig(__dirname)
module.exports = withNativeWind(config, { input: './src/global.css', inlineRem: 18 })
CLI output (paste the full command output)
[19:32:12.210] DEBUG (#16): Doctor options: {
"cwd": ".",
"summary": false,
"yes": false
}
[19:32:12.214] DEBUG (#16): ✔ expo@~53.0.22 is installed
[19:32:12.214] DEBUG (#16): ✔ nativewind@^4.1.23 is installed
[19:32:12.214] DEBUG (#16): ✔ react-native-reanimated@~3.17.5 is installed
[19:32:12.214] DEBUG (#16): ✔ [email protected] is installed
[19:32:12.214] DEBUG (#16): ✔ tailwindcss-animate@^1.0.7 is installed
[19:32:12.215] DEBUG (#16): ✔ class-variance-authority@^0.7.1 is installed
[19:32:12.215] DEBUG (#16): ✔ clsx@^2.1.1 is installed
[19:32:12.215] DEBUG (#16): ✔ tailwind-merge@^3.3.1 is installed
[19:32:12.215] DEBUG (#16): ✔ tailwindcss@^3.4.17@undefined is installed
[19:32:12.218] DEBUG (#30): ✔ Babel Config found
[19:32:12.219] DEBUG (#31): ✔ Metro Config found
[19:32:12.219] DEBUG (#32): ✔ Root Layout found
[19:32:12.220] DEBUG (#16): ✔ Babel Config has nativewind/babel, jsxImportSource
[19:32:12.220] DEBUG (#16): ✔ Metro Config has withNativeWind(
[19:32:12.220] DEBUG (#16): ✖ Metro Config missing inlineRem, 16
[19:32:12.221] DEBUG (#16): ✔ Root Layout has .css
[19:32:12.221] DEBUG (#16): ✔ Root Layout has <PortalHost
[19:32:12.223] DEBUG (#16): componentJsonConfig: {
"$schema": "https://ui.shadcn.com/schema.json",
"style": "new-york",
"rsc": false,
"tsx": true,
"tailwind": {
"config": "tailwind.config.js",
"css": "@/global.css",
"baseColor": "neutral",
"cssVariables": true
},
"aliases": {
"components": "@/widgets",
"utils": "@/shared/lib/utils",
"ui": "@/shared/ui",
"lib": "@/shared/lib",
"hooks": "@/shared/hooks"
}
}
[19:32:12.224] DEBUG (#16): ✔ CSS found
[19:32:12.224] DEBUG (#16): ✔ CSS has @tailwind base, @tailwind components, @tailwind utilities
[19:32:12.224] DEBUG (#16): ✔ CSS has background, foreground, card, popover, primary, secondary, muted, accent, destructive, border, input, ring, radius
[19:32:12.225] DEBUG (#16): ✔ Nativewind Env has nativewind/types
[19:32:12.225] DEBUG (#16): ✔ Tailwind Config found
[19:32:12.226] DEBUG (#16): ✔ Tailwind Config has nativewind/preset
[19:32:12.226] DEBUG (#16): ✔ Tailwind Config has background, foreground, card, popover, primary, secondary, muted, accent, destructive, border, input, ring, radius
[19:32:12.230] DEBUG (#16): ✔ Theme has background, foreground, card, popover, primary, secondary, muted, accent, destructive, border, input, ring, radius
[19:32:12.230] DEBUG (#16): ✔ Theme has NAV_THEME
[19:32:12.230] DEBUG (#16): ✔ Utils has function cn(
[19:32:12.232] DEBUG (#34): ✔ Deprecated @/shared/lib/icons/iconWithClassName.ts not found
[19:32:12.232] DEBUG (#35): ✔ Deprecated @/shared/lib/constants.ts not found
[19:32:12.232] DEBUG (#36): ✔ Deprecated @/shared/lib/useColorScheme.tsx not found
[19:32:12.233] DEBUG (#38): ✔ Deprecated @/shared/ui/typography.tsx not found
[19:32:12.233] INFO (#16):
🩺 Diagnosis
✖ Potentially Misconfigured Files (1)
• Metro Config
↪ The inlineRem is missing
📘 Docs: https://reactnativereusables.com/docs/installation/manual#update-the-default-inlined-rem-valueMetadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working