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.
4 Replies
same to me
seeing the same thing, i filed a github issue here
were either of you able to get it working? @pranali @haingdc
GitHub
[Bug]: Unable to deploy Next.js following official guide · Issue #8...
Problem description Unable to deploy next.js apps on deno deploy through the cli or github actions. I've tried following this guide and several other methods but always get the same type of par...
@Alex 1318 @haingdc Are you still facing this issue?
@pranali deno team has released a fix specifically for the CSS parsing issue. however, once this particular issue was fixed i encountered other errors which prevented my next.js app from running on deno deploy
GitHub
[Bug]: Unable to deploy Next.js following official guide · Issue #8...
Problem description Unable to deploy next.js apps on deno deploy through the cli or github actions. I've tried following this guide and several other methods but always get the same type of par...