Upgrade Tool Fails - Reflect.ownKeys called on non-object #17657
Answered
by
wongjn
ethan-christensen-cag
asked this question in
Help
-
Hello all. I am trying to upgrade tailwind to v4 with the tool. However, when I run the tool, I get this error message. I have tried to hunt down what is causing this error, but am having trouble finding a way to get the tool to be more detailed when it fails. Error≈ tailwindcss v4.1.3
│ Searching for CSS files in the current directory and its subdirectories…
│ ↳ Linked `.\tailwind.config.js` to `.\src\styles.css`
│ Migrating JavaScript configuration files…
│ ↳ Could not load the configuration file: Reflect.ownKeys called on non-object Config/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./**/templates/**/*.html",
"./src/**/*.{html,ts,scss,css}"
],
theme: {
fontFamily: {
poppins: ['Poppins'],
archivo: ['Archivo', 'sans'],
jetbrainsMono: ['JetBrains Mono', 'monospace'],
sans: [
'-apple-system',
'BlinkMacSystemFont',
'Inter',
'ui-sans-serif',
'system-ui',
'Segoe UI',
'Roboto',
'Ubuntu',
'Cantarell',
'Noto Sans',
'sans-serif',
'Helvetica Neue',
'Arial',
'Apple Color Emoji',
'Segoe UI Emoji',
'Segoe UI Symbol',
'Noto Color Emoji',
],
},
colors: {
border: "hsl(var(--border))",
input: "hsl(var(--input))",
ring: "hsl(var(--ring))",
background: "hsl(var(--background))",
foreground: "hsl(var(--foreground))",
primary: {
DEFAULT: "hsl(var(--primary))",
foreground: "hsl(var(--primary-foreground))",
},
secondary: {
DEFAULT: "hsl(var(--secondary))",
foreground: "hsl(var(--secondary-foreground))",
},
destructive: {
DEFAULT: "hsl(var(--destructive))",
foreground: "hsl(var(--destructive-foreground))",
},
muted: {
DEFAULT: "hsl(var(--muted))",
foreground: "hsl(var(--muted-foreground))",
},
accent: {
DEFAULT: "hsl(var(--accent))",
foreground: "hsl(var(--accent-foreground))",
},
'accent-2': {
DEFAULT: "hsl(var(--accent-2))",
foreground: "hsl(var(--accent-foreground))",
},
popover: {
DEFAULT: "hsl(var(--popover))",
foreground: "hsl(var(--popover-foreground))",
},
card: {
DEFAULT: "hsl(var(--card))",
foreground: "hsl(var(--card-foreground))",
},
},
extend: {
borderRadius: {
lg: 'var(--radius)',
md: 'calc(var(--radius) - 2px)',
sm: 'calc(var(--radius) - 4px)',
'2xl': 'calc(var(--radius) + 25px)',
},
borderWidth: 'var(--border-width)',
keyframes: {
'accordion-down': {
from: { height: '0' },
to: { height: 'var(--radix-accordion-content-height)' },
},
'accordion-up': {
from: { height: 'var(--radix-accordion-content-height)' },
to: { height: '0' },
},
'toast-in': {
'0%': { transform: 'translateY(-100%)', opacity: 0 },
'100%': { transform: 'translateY(0)', opacity: 1 },
},
'toast-out': {
'0%': { transform: 'translateX(0)', opacity: 1 },
'100%': { transform: 'translateX(100%)', opacity: 0 },
},
},
animation: {
'accordion-down': 'accordion-down 0.2s ease-out',
'accordion-up': 'accordion-up 0.2s ease-out',
'toast-in': 'toast-in 0.5s ease-in-out forwards',
'toast-out': 'toast-out 0.5s ease-in-out forwards',
},
},
}
}; |
Beta Was this translation helpful? Give feedback.
Answered by
wongjn
Apr 12, 2025
Replies: 1 comment 1 reply
-
I think the error could be coming from your string value for '2xl': 'calc(var(--radius) + 25px)',
},
-borderWidth: 'var(--border-width)',
+borderWidth: {
+ DEFAULT: 'var(--border-width)',
+},
keyframes: {
'accordion-down': { |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ethan-christensen-cag
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think the error could be coming from your string value for
borderWidth
- it should be an object: