The issue is caused by the "main": "tailwind.config.js"
property in your package.json
file. When you run nodemon server.js
, nodemon
reads the main property and tries to include tailwind.config.js
as well.
Update the "main"
property in package.json
to point to your entry file, server.js