Home > Mobile >  Error: ENOENT: no such file or directory, open 'C:\Users\username\Desktop\vue-tailwind-naiv
Error: ENOENT: no such file or directory, open 'C:\Users\username\Desktop\vue-tailwind-naiv

Time:06-06

So I have been trying to install tailwind inside a Vue Project.

I initialized the vue project using: vue create project-name.

Then I add tailwind as a plugin using the command: vue add tailwind and then select the minimal option. I suspect the plugin is installed correctly but still I get the below error :

Error

In the package.json, tailwind & autoprefixer can be seen correctly installed. Also postcss.config.js & vue.config.js files have been added successfully & correctly.

Screen

But when I run to serve the page, I get this error: enter image description here

I can't figure out what's going wrong here. Please help.

CodePudding user response:

Try to delete the postcss.config.js then run the following command at the project root :

 npx tailwindcss init -p

this command will create postcss.config.js and tailwind.config.js files.

  • Related