Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation fails with Next.js 15 and shadcn-ui to add a button for my searchbar #1

Closed
Svendolin opened this issue Dec 2, 2024 · 0 comments

Comments

@Svendolin
Copy link
Owner

PROBLEM LINK SOLUTION TO WORK ON
Installation fails with Next.js 15 and shadcn-ui to add a button for my searchbar. This issue appeared around mid October! CLICK HERE I tried to continue with older next.js version such as 14 than 15 > Went to package.json > dependencies "next" and saw the actual 15 version, so I went back to the latest 14 version with "$ npm install next@14.2.14"
  • Due to the downgrade back to next.js 14 I had to rename next.config.ts to next.config.js because the typescript version was not compatible with the older next.js version, plus I replaced it with following code in the next.config.js file:
 # Replaced the content of the next.config.js file with the following code:
 // @ts-check

 /** @type {import('next').NextConfig} */
 const nextConfig = {
   /* config options here */
 }

 module.exports = nextConfig
 # code end
  • Then I went to tsconfig.json and VSC, Visual Studio Code where I'm coding right now, wanted to update the file automatically, so I answered with YES and started the server again with "npm run dev" and it worked perfectly fine!
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

No branches or pull requests

1 participant