No app server detected. Using simple static server

I started working on an old project and tried running netlify dev and it does not error out on the run but get this output in my cli terminal

BlockquotePS C:\Users\yaako\OneDrive\projects\pies-and-fries-3> netlify dev
◈ Netlify Dev ◈
◈ Injecting environment variable values for all scopes
◈ Injected site settings env var: REACT_APP_AIR_TABLE_API_KEY
◈ Injected site settings env var: REACT_APP_CLIENT_ID
◈ Injected site settings env var: REACT_APP_EMAILJS_ID
◈ Injected site settings env var: REACT_APP_GOOGLE_API_KEY
◈ Injected site settings env var: REACT_APP_GOOGLESHEET_ID
◈ Injected site settings env var: REACT_APP_NODE_TEST
◈ Injected site settings env var: REACT_APP_SENDGRID
◈ Injected site settings env var: REACT_APP_STRIPE_SK
◈ Injected .env file env var: SKIP_PREFLIGHT_CHECK
◈ No app server detected. Using simple static server
◈ Running static server from “pies-and-fries-3\dist”
◈ Setting up local development server

◈ Static server listening to 3999

┌─────────────────────────────────────────────────┐
│ │
│ ◈ Server now ready on http://localhost:8888
│ │
└─────────────────────────────────────────────────┘

Blockquote

it seems like it cannot find liveserver and instead builds a “static server” and then when the page loads it gives me a 404 page not found issure. the project runs fine when I run npm start though.
This is the name of my site pies-and-fries.

Hi @yepstein1 , kindly check your build script in your package.json or in the netlify.toml if there is one in your project root.

Hi @yepstein1 , kindly share a code snippet of your package.json so that I see your build script

Having this same issue and am sad to see they never replied (likely found a solution).

Here is my code snippet of package.json:

{
  "name": "gobetterway",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "dev": "next dev",
    "build": "next build",
    "start": "next start",
    "lint": "next lint"
  },
  "dependencies": {
    "@heroicons/react": "^2.0.18",
    "class-variance-authority": "^0.7.0",
    "clsx": "^2.0.0",
    "next": "13.5.4",
    "react": "^18",
    "react-dom": "^18",
    "tailwind-merge": "^1.14.0"
  },
  "devDependencies": {
    "@netlify/plugin-nextjs": "^4.40.2",
    "@types/node": "^20",
    "@types/react": "^18",
    "@types/react-dom": "^18",
    "autoprefixer": "^10",
    "eslint": "^8",
    "eslint-config-next": "13.5.4",
    "postcss": "^8",
    "prettier": "^3.0.3",
    "prettier-plugin-tailwindcss": "^0.5.5",
    "tailwindcss": "^3",
    "tailwindcss-animate": "^1.0.7",
    "typescript": "^5"
  }
}

Note that I opened my own issue here last night: `netlify dev` results in "Could not find function 'next-dev'"

NEVERMIND, I was running from the wrong directory. I still have the same issue from my original post: `netlify dev` results in "Could not find function 'next-dev'"

1 Like

Thanks for the update @Michael_Mannucci

1 Like

Blockquote
{
“name”: “pies-and-fries-3”,
“version”: “1.0.0”,
“description”: “Pies and Fries”,
“main”: “index.js”,
“scripts”: {
“start”: “react-scripts start”,
“test”: “echo "Error: no test specified" && exit 1”
},
“author”: “”,
“license”: “ISC”,
“dependencies”: {
@sendgrid/mail”: “^7.7.0”,
@stripe/stripe-js”: “^2.1.0”,
“babel-cli”: “^6.26.0”,
“babel-preset-react-app”: “^3.1.2”,
“bootstrap”: “^5.3.1”,
“dom-helpers”: “^5.2.1”,
“react”: “^18.2.0”,
“react-bootstrap”: “^2.8.0”,
“react-dom”: “^18.2.0”,
“react-icons”: “^4.10.1”,
“stripe”: “^13.0.0”,
“universal-cookie”: “^5.0.0”
},
“browserslist”: {
“production”: [
“>0.2%”,
“not dead”,
“not op_mini all”
],
“development”: [
“last 1 chrome version”,
“last 1 firefox version”,
“last 1 safari version”
]
}
}

Blockq

Hi @yepstein1 can you explain further what your problem is or if possible share a snippet of your build logs.
Thanks.

1 Like

I have been running it locally and I don’t think I have build logs. My issue is when I try to run it with netlify dev it gives me a message “no app server detected. Using simple static server” and then when I try to navigate to the my local host URL that it is supposed I get a 404

Hi @yepstein1, if you are not using the latest version of the Netlify CLI, kindly update it to the latest version and then try again to see if it works.

I suggest you create a new minimal version of your application and then run with Netlify CLI to see if it works. This will help with the debugging. If Netlify CLI works with the minimal version that means the problem is how your main project is setup.

Also try to deploy the project to production. Sometimes the build logs also help with debugging.

what do you mean by a minimal version?

@yepstein1, minimal version means you create a fresh project with basic components for example a “Hello World” text.
By doing that you want to know if the problem is happing in your code, the application framework, or hosting.
It helps with debugging your application.