haingdc
haingdc
DDeno
Created by Alex 1318 on 3/13/2025 in #help
Unable to deploy Next.js following official guide
@Alex 1318 Can you make it works with Deno Deploy?
6 replies
DDeno
Created by Alex 1318 on 3/13/2025 in #help
Unable to deploy Next.js following official guide
@Alex 1318 oh It's new to me. Thank you for explaining that. I get an error when build when using Deno api.
$ deno task build
Creating an optimized production build ...
✓ Compiled successfully
Linting and checking validity of types ..Failed to compile.

./app/api/hello/route.ts:2:43
Type error: Cannot find name 'Deno'.

1 | export async function GET (req: Request) {
> 2 | return new Response(`Hello, from Deno v${Deno.version.deno}!`);
| ^
3 | };
Next.js build worker exited with code: 1 and signal: null
$ deno task build
Creating an optimized production build ...
✓ Compiled successfully
Linting and checking validity of types ..Failed to compile.

./app/api/hello/route.ts:2:43
Type error: Cannot find name 'Deno'.

1 | export async function GET (req: Request) {
> 2 | return new Response(`Hello, from Deno v${Deno.version.deno}!`);
| ^
3 | };
Next.js build worker exited with code: 1 and signal: null
6 replies
DDeno
Created by Alex 1318 on 3/13/2025 in #help
Unable to deploy Next.js following official guide
I follow the blog article to get experience to it and get same error. Then I tried to deploy it to vercel by vercel cli. And It works. You can do it as a workaround @Alex 1318
6 replies
DDeno
Created by pranali on 3/5/2025 in #help
CSS Parsing Error During Next.js Deployment on Deno.
same to me
5 replies