Skip to content

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

@MalekIhdene

Description

@MalekIhdene

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    ReactIssue with Tailwind Mobile React

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions