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

TailwindCSS V4 Update - (v || "").replace is not a function #227

Open
5 of 6 tasks
MalekIhdene opened this issue Feb 4, 2025 · 1 comment
Open
5 of 6 tasks

TailwindCSS V4 Update - (v || "").replace is not a function #227

MalekIhdene opened this issue Feb 4, 2025 · 1 comment
Labels
React Issue with Tailwind Mobile React

Comments

@MalekIhdene
Copy link

Check that this is really a bug

  • I confirm

Reproduction link

...

Bug description

Hello,
I upgraded my Konsta project to Tailwind V4 and it seems like that broke the Konsta config plugin as now, it gives me the following error:

Image

My tailwind.config.js file looks like this, standard stuff:

import konstaConfig from 'konsta/config'

export default konstaConfig({
  content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
  theme: {
    extend: {
      colors: {
        red: '#ff0000',
      },
    },
  },
  darkMode: 'media',
  plugins: [],
})

If I remove the konstaConfig, my project starts building. I'm trying to migrate to Tailwind 4.0.3. I would try to reproduce the issue but the StackBlitz provided there blocks me from upgrading the Konsta version or adding extra new libraries for some reason. Maybe I can provide a Github link instead?

Expected Behavior

No response

Actual Behavior

No response

Konsta UI version

4.0.1

Platform/Target and Browser Versions

Capacitor (MacOS Safari)

Validations

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
  • Make sure this is a Konsta UI issue and not a framework-specific issue

Would you like to open a PR for this bug?

  • I'm willing to open a PR
@MalekIhdene MalekIhdene added the React Issue with Tailwind Mobile React label Feb 4, 2025
@MalekIhdene
Copy link
Author

MalekIhdene commented Feb 4, 2025

I'm using the TailwindCSS Vite plugin by the way and not using PostCSS
Edit: and my Tailwind config file looks like this:

@import "tailwindcss";
@config "../tailwind.config.js";

.hide-scrollbar::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome, Safari, and Opera */
}

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

No branches or pull requests

1 participant