Skip to content

[V4] Sourcemap is likely to be incorrect: Warnings during Nuxt & Vite build #17926

@YogeshwarHz

Description

@YogeshwarHz

What version of Tailwind CSS are you using?
v4.1.5

What build tool (or framework if it abstracts the build tool) are you using?
-> Nuxt 3.17.2 + Vite v6.3.5

What version of Node.js are you using?
-> v22.11

What browser are you using?
Edge & Chrome

What operating system are you using?
-> Windows 11

Reproduction URL

A reproduction is required when filing an issue — any issue opened without a reproduction will be closed and you'll be asked to create a new issue that includes a reproduction. We're a small team and we can't keep up with the volume of issues we receive if we need to reproduce each issue from scratch ourselves.

Describe your issue

Well, it occurs when I try to make a production build of Nuxt npm run build, and during the build, i get warnings saying

WARN [plugin @tailwindcss/vite:generate:build] Sourcemap is likely to be incorrect: a plugin (@tailwindcss/vite:generate:build) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help

package.json dependency list

"dependencies": {
    "@elastic/elasticsearch": "8.17.1",
    "@eslint/js": "9.26.0",
    "@nuxt/image": "1.10.0",
    "@nuxtjs/device": "3.2.4",
    "@nuxtjs/google-fonts": "3.2.0",
    "@nuxtjs/html-validator": "2.1.0",
    "@nuxtjs/seo": "3.0.3",
    "@pinia/nuxt": "0.11.0",
    "@tailwindcss/vite": "4.1.5",
    "@vee-validate/nuxt": "4.15.0",
    "@vee-validate/rules": "4.15.0",
    "@vuepic/vue-datepicker": "11.0.2",
    "@vueuse/nuxt": "13.1.0",
    "axios": "1.9.0",
    "chart.js": "4.4.9",
    "concurrently": "9.1.2",
    "eslint": "9.26.0",
    "eslint-plugin-vue": "^10.1.0",
    "h3-compression": "0.3.2",
    "hygen": "6.2.11",
    "js-cookie": "3.0.5",
    "js-sha256": "0.11.0",
    "jsonwebtoken": "9.0.2",
    "jwt-decode": "4.0.0",
    "lodash": "4.17.21",
    "nuxt": "3.17.2",
    "nuxt-auth-utils": "0.5.20",
    "nuxt-csurf": "1.6.5",
    "nuxt-delay-hydration": "1.3.8",
    "nuxt-security": "2.2.0",
    "nuxt-swiper": "2.0.0",
    "pinia": "3.0.2",
    "pretty-quick": "4.1.1",
    "sweetalert2": "11.21.0",
    "swiper": "11.2.6",
    "typescript": "5.8.3",
    "typescript-eslint": "8.32.0",
    "uuid": "11.1.0",
    "vee-validate": "4.15.0",
    "vue": "3.5.13",
    "vue-3-slider-component": "1.0.2",
    "vue-chartjs": "5.3.2",
    "vue-content-loader": "2.0.1",
    "vue-currency-input": "3.2.1",
    "vue-recaptcha": "3.0.0-alpha.6",
    "vue-router": "4.5.1",
    "vue-the-mask": "0.11.1",
    "vue3-otp-input": "0.5.30",
    "yup": "1.6.1",
    "zod": "3.24.4"
  },
  "devDependencies": {
    "@types/jsonwebtoken": "9.0.9",
    "autoprefixer": "10.4.21",
    "cross-env": "7.0.3",
    "husky": "9.1.7",
    "postcss": "8.5.3",
    "sass": "1.87.0",
    "sass-embedded": "1.87.0",
    "tailwindcss": "4.1.5"
  }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions