PolarisP
Denoβ€’13mo agoβ€’
33 replies
Polaris

Creating Deno.json wrecks Next.js project

I am trying to create a Next.js project with Deno, Shadcn & Tailwind.

Things initially seem fine until I realise that I need to create a Deno.json file to get Object.prototype.__proto__ to work.

However as soon as I create a Deno.js file, I am bombarded with numerous errors that I wouldn't (and shouldn't) be getting otherwise - even within Shadcn components.

Initially, these errors are pertaining to imports. If I try to fix them, I start getting 'implict any' errors on all my shadcn components.

Any advise on fixing this is highly appreciated.
image.png
Was this page helpful?