If youre seeing this error:
because youre using a require() syntax in something like the tailwind.config.ts file...
Here's what to do
In the tailwind.config.js file:
- Replace
const animate = require("tailwindcss-animate")with `import animate from "tailwindcs-animate" - Replace
module.exports =withexport default