Skip to content

Conversation

mars-alien
Copy link

Vite was warning while loading the PostCSS config as an ES module, because the repo ships a .cts config. This causes Node to treat it as ESM without the package being ESM, leading to a warning during dev/build.

Warning like these and css was loading as distorted.

Warning: Failed to load the ES module: client\postcss.config.cts.
Make sure to set "type": "module" in the nearest package.json file or use the .mjs extension.

…nfig as ES Module(ESM) but file is postcss.config.cts.So I used CJS Export.
Copy link

vercel bot commented Sep 11, 2025

Someone is attempting to deploy a commit to the Sahil Atahar's projects Team on Vercel.

A member of the Team first needs to authorize it.

@anuragya1
Copy link

@mars-alien when running locally tailwind was not loading with module.exports because typescript didnt recognise the module global. it works with just export ={....} as its TypeScript-safe CommonJS syntax .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants