You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: