Nuxt 4 + tailwindcss + directus gettng error "500 Cannot redefine property: _path"

So I'm trying to do a project in Nuxt 4, and I got a problem when I try to edit any CSS element. It just crashes to 500 Cannot redefine property: _path I tried changing node version because I found one user changed his version from node 20 to 24, and it fixed it, but I tried the same and still nothing error 500: Cannot redefine property: _path at <project-root>/.nuxt/middleware.mjs:12:10 at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async ViteNodeRunner.runModule (<project-root>/node_modules/vite-node/dist/client.mjs:397:4) at async ViteNodeRunner.directRequest (<project-root>/node_modules/vite-node/dist/client.mjs:375:3) at async ViteNodeRunner.cachedRequest (<project-root>/node_modules/vite-node/dist/client.mjs:189:11) at async ViteNodeRunner.dependencyRequest (<project-root>/node_modules/vite-node/dist/client.mjs:239:10) at async <project-root>/node_modules/nuxt/dist/pages/runtime/plugins/router.js:14:32 at async ViteNodeRunner.runModule (<project-root>/node_modules/vite-node/dist/client.mjs:397:4) at async ViteNodeRunner.directRequest (<project-root>/node_modules/vite-node/dist/client.mjs:375:3)
6 Replies
kapa.ai
kapa.ai16h ago
Hi @MutiranaKornjaca. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- I'm sorry, but the knowledge sources provided do not contain any explicit information about the "500 Cannot redefine property: _path" error in the context of Nuxt 4, Tailwind CSS, and Directus. There are no references to this specific error or its resolution in the available documents. If you are encountering this error when editing CSS and it triggers a crash, it may be related to a deeper issue in your middleware or build process, but without more details or a direct mention in the sources, I cannot provide a confident solution. If you have more context or a minimal reproduction, you might consider opening an issue on the Nuxt GitHub repository or searching for similar issues there, as this type of error could be environment-specific or related to a particular combination of modules or middleware. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai16h ago
<@456150472143667201> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
MutiranaKornjaca
MutiranaKornjacaOP16h ago
@kapa.ai i did that already https://github.com/nuxt/nuxt/issues/33378
GitHub
Nuxt 4 + tailwindcss + directus gettng error "500 Cannot redefine p...
Environment Operating System: Linux Node Version: v24.9.0 Nuxt Version: 4.1.2 CLI Version: 3.28.0 Nitro Version: 2.12.6 Package Manager: npm@11.6.0 Builder: - User Config: compatibilityDate, srcDir...
kapa.ai
kapa.ai16h ago
Let me check the knowledge base for you again. One moment! :books: ---------------------- Thank you for sharing that you already created an issue: nuxt/nuxt#33378. However, based on the knowledge sources provided, there is no explicit mention of the "500 Cannot redefine property: _path" error in the context of Nuxt 4, Tailwind CSS, and Directus, nor any documented solution or workaround for this specific problem. The closest related issues in the knowledge sources discuss other build or runtime errors, but none reference the _path property or a similar middleware crash. Since you have already reported the issue on GitHub, the best course of action is to monitor that thread for updates or feedback from the Nuxt team or community. If you haven't already, consider providing a minimal reproduction of your issue, as this is highly encouraged in the Nuxt community to help diagnose and resolve bugs more efficiently Reporting Bugs. I'm sorry I couldn't provide a direct solution, but the knowledge sources do not contain enough information to answer your question with confidence. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai16h ago
<@456150472143667201> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
MutiranaKornjaca
MutiranaKornjacaOP16h ago
bruh

Did you find this page helpful?