Skip to content

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

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

Closed
YogeshwarHz opened this issue May 8, 2025 · 2 comments
Closed

Comments

@YogeshwarHz
Copy link

YogeshwarHz commented May 8, 2025

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"
  }
@philipp-spiess
Copy link
Member

Hey! Please include a reproduction. Could this transform step be run on a JS file? For CSS source maps, we're working on this but it's not added yet: #17775

@philipp-spiess
Copy link
Member

Going to close this as a duplicate of #13694 for now but if this is indeed related to some JS files please file a new issue and attach a reproduction.

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

No branches or pull requests

2 participants