tailwindcss-radix-colors
tailwindcss-radix-colors copied to clipboard
Cannot read properties of undefined (reading '1')
I got an error in the build of Next.js when I upgraded the dependency version👀
Failed to compile.
./node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected][email protected]/node_modules/@radix-ui/themes/styles.css.webpack[javascript/auto]!=!./node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[11].oneOf[12].use[2]!./node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[11].oneOf[12].use[3]!./node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected][email protected]/node_modules/@radix-ui/themes/styles.css
TypeError: Cannot read properties of undefined (reading '1')
at p1 (/Users/project/node_modules/.pnpm/[email protected][email protected]/node_modules/tailwindcss-radix-colors/dist/index.cjs:1:105851)
Is it because of tailwindcss-radix-colors?
Below are the versions of the packages that may be involved.
"@headlessui/tailwindcss": "^0.2.0",
"@radix-ui/react-label": "^2.0.2",
"@radix-ui/react-navigation-menu": "^1.1.4",
"@radix-ui/react-radio-group": "^1.1.3",
"@radix-ui/react-select": "^2.0.0",
"@radix-ui/react-slot": "^1.0.2",
"@radix-ui/react-toast": "^1.1.5",
"@radix-ui/themes": "^2.0.3",
"next": "^14.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-hook-form": "^7.49.3",
"tailwind-merge": "^2.2.1",
"tailwindcss-radix-colors": "^1.1.0",
// devDependencies
"@types/node": "^20.7.2",
"@types/react": "^18.2.22",
"@types/react-dom": "^18.2.7",
"eslint": "^8.56.0",
"eslint-plugin-tailwindcss": "^3.14.0",
"tailwindcss": "^3.4.0",
"typescript": "^5.2.2"