CTDev
  • AI
  • SMM

tailwindcss config  A require style import is forbidden error

Problem:

A `require()` style import is forbidden.eslint@typescript-eslint/no-require-imports

with

plugins: [require("tailwindcss-animate")],

Solution:

add to the top of your tailwind.config.js

 

/* eslint-disable @typescript-eslint/no-require-imports */
Read other posts
← Unhandled Runtime Error Error: Invalid prisma invocation: The table does not exist in the current database. Deploying Nextjs app on Cloudflare workers →

CTDev©

This website uses cookies
This website uses cookies. More details...
Cookie settings
We use cookies to enhance your browsing experience, serve personalized ads or content, and analyze our traffic. By clicking "Accept All", you consent to our use of cookies. More details...
  • Required

    Cookies that are essential for the basic functionality of the site, but do not collect any personally-identifiable data.

  • Functionality

    Cookies that add functionality to the website

  • Analytics

    Cookies that collect analytical or tracking data for the purpose of providing statistics

  • Marketing

    Cookies that collect data that will be used for marketing purposes such as showing specific adverts to visitors, or allowing them to sign-up for newletters or other communications