Next.js Discord

Discord Forum

How to disable experimental features

Answered
Error posted this in #help-forum
Open in Discord
Avatar
First time hearing this i hv no idea wht it does but when i try to run my app it doe'snt run right....so howd do i turn it off....or sth
Image
Answered by James4u
npm i next@latest react@latest react-dom@latest eslint-config-next@latest
View full answer

21 Replies

Avatar
ready started server on 0.0.0.0:3000, url: http://localhost:3000
- info Loaded env from C:\Users\USER\OneDrive\Desktop\Documents\threads-main\.env
- warn You have enabled experimental features (serverActions, serverComponentsExternalPackages) in next.config.js.
- warn Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use at your own risk.

- warn Attempted to load @next/swc-win32-x64-gnu, but it was not installed
- warn Attempted to load @next/swc-win32-x64-msvc, but an error occurred: \\?\C:\Users\USER\OneDrive\Desktop\Documents\threads-main\node_modules\@next\swc-win32-x64-msvc\next-swc.win32-x64-msvc.node is not a valid Win32 application.
\\?\C:\Users\USER\OneDrive\Desktop\Documents\threads-main\node_modules\@next\swc-win32-x64-msvc\next-swc.win32-x64-msvc.node
- error Failed to load SWC binary for win32/x64, see more info here: https://nextjs.org/docs/messages/failed-loading-swc
Anyone
Avatar
@Error which next.js version are you using?
try to upgrade your next.js version where server actions are stable
Avatar
how do i check?
Avatar
package.json
Avatar
0.1.0
Avatar
oh, no
gimme the whole package.json
Avatar
{
  "name": "threads",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "dev": "next dev",
    "build": "next build",
    "start": "next start",
    "lint": "next lint"
  },
  "dependencies": {
    "@clerk/nextjs": "^4.21.15",
    "@clerk/themes": "^1.7.5",
    "@hookform/resolvers": "^3.1.1",
    "@radix-ui/react-label": "^2.0.2",
    "@radix-ui/react-menubar": "^1.0.3",
    "@radix-ui/react-select": "^1.2.2",
    "@radix-ui/react-slot": "^1.0.2",
    "@radix-ui/react-tabs": "^1.0.4",
    "@radix-ui/react-toast": "^1.1.4",
    "@types/node": "20.4.2",
    "@types/react": "18.2.15",
    "@types/react-dom": "18.2.7",
    "@uploadthing/react": "^5.2.0",
    "autoprefixer": "10.4.14",
    "class-variance-authority": "^0.6.1",
    "clsx": "^1.2.1",
    "eslint": "8.45.0",
    "eslint-config-next": "13.4.10",
    "eslint-config-prettier": "^8.8.0",
    "eslint-config-standard": "^17.1.0",
    "eslint-plugin-tailwindcss": "^3.13.0",
    "lucide-react": "^0.260.0",
    "micro": "^10.0.1",
    "mongoose": "^7.3.4",
    "next": "13.4.10",
    "postcss": "8.4.26",
    "prettier": "^3.0.0",
    "react": "18.2.0",
    "react-dom": "18.2.0",
    "react-hook-form": "^7.45.1",
    "svix": "^1.7.0",
    "tailwind-merge": "^1.13.2",
    "tailwindcss": "3.3.3",
    "tailwindcss-animate": "^1.0.6",
    "typescript": "5.1.6",
    "uploadthing": "^5.2.0",
    "zod": "^3.21.4"
  }
}
Avatar
okay you are using next 13
Avatar
npm i next@latest react@latest react-dom@latest eslint-config-next@latest
Answer
Avatar
try this command
Avatar
now wht
bro did u just bail me
Avatar
@Error how is it going?
Avatar
well it worked...but thr sth wrong with clerk
it's glicthy..i guess
Avatar
good. mark it as solved and create separated ticket if you need.
thanks
Avatar
thnx for ur help