tailwindcss
tailwindcss copied to clipboard
Incompatibility with NodeJS 23.1.0
What version of Tailwind CSS are you using?
3.4.14
What build tool (or framework if it abstracts the build tool) are you using?
Angular 18
What version of Node.js are you using?
23.1.0
What browser are you using?
N/A
What operating system are you using?
ArchLinux
Reproduction URL
Not needed
Describe your issue
While building my app I got following bug:
(node:341900) ExperimentalWarning: CommonJS module /home/alexander/Dev/angular/moem/node_modules/tailwindcss/lib/lib/load-config.js is loading ES Module /home/alexander/Dev/angular/moem/tailwind.config.js using require(). Support for loading ES Module in require() is an experimental feature and might change at any time
thus my config is not imported. The bug affects only NodeJS 23.1.0 which is default now in ArchLinux. Downgrading to NodeJS LTS fixes the issue.