pranali
pranali7d ago

CSS Parsing Error During Next.js Deployment on Deno.

I am facing an issue while deploying my Next.js (15.2.1) application on Deno Deploy. The deployment fails with the following error: Error: The deployment failed: Error parsing 'file:///src/.next/static/css/6c5fadf7446c0717.css': Expression expected at file:///src/.next/static/css/6c5fadf7446c0717.css:1:2 *,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-... ~ I am using the following dependencies in my project: Next.js: 15.2.1 PostCSS: ^8.5.3 Tailwind CSS: ^3.4.17 The error does not occur when running the project locally using npm run build && npm start. However, it consistently fails during the Deno Deploy process. I have also tried using pnpm, but the issue persists.
No description
1 Reply
haingdc
haingdc5d ago
same to me

Did you find this page helpful?