Skip to content
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

Error: hex.includes is not a function #16

Open
macsupport opened this issue Sep 12, 2024 · 1 comment
Open

Error: hex.includes is not a function #16

macsupport opened this issue Sep 12, 2024 · 1 comment

Comments

@macsupport
Copy link

Just installed your plugin and when running

npx tailwindcss -i ./src/css/styles.css -o ./src/css/tailwind.css --minify

I get the following error:

Rebuilding...
TypeError: hex.includes is not a function
at rulesForColor (/Users/macsupport/Downloads/VETCALCULATORS-APP/VETDrugs/node_modules/tailwind-capacitor/src/config/plugin-colors.js:6:12)
at /Users/macsupport/Downloads/VETCALCULATORS-APP/VETDrugs/node_modules/tailwind-capacitor/src/config/plugin-colors.js:28:29
at Array.forEach ()
at module.exports (/Users/macsupport/Downloads/VETCALCULATORS-APP/VETDrugs/node_modules/tailwind-capacitor/src/config/plugin-colors.js:27:30)
at registerPlugins (/Users/macsupport/Downloads/VETCALCULATORS-APP/VETDrugs/node_modules/tailwindcss/lib/lib/setupContextUtils.js:815:61)
at createContext (/Users/macsupport/Downloads/VETCALCULATORS-APP/VETDrugs/node_modules/tailwindcss/lib/lib/setupContextUtils.js:1221:5)
at createContext (/Users/macsupport/Downloads/VETCALCULATORS-APP/VETDrugs/node_modules/tailwindcss/lib/processTailwindFeatures.js:44:61)
at Object.getContext (/Users/macsupport/Downloads/VETCALCULATORS-APP/VETDrugs/node_modules/tailwindcss/lib/cli/build/plugin.js:202:24)
at /Users/macsupport/Downloads/VETCALCULATORS-APP/VETDrugs/node_modules/tailwindcss/lib/cli/build/plugin.js:249:38
at /Users/macsupport/Downloads/VETCALCULATORS-APP/VETDrugs/node_modules/tailwindcss/lib/processTailwindFeatures.js:46:11

@MattiaFailla
Copy link

+1, same issue on "vue": "^3.5.13" and "tailwind-capacitor": "^1.0.8".

The fastest workaround is to remove the following line from tailwind.config.js and disable colors:

require('tailwind-capacitor').colors,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants