Next.js Discord

Discord Forum

next/font: FetchError request ETIMEDOUT

Answered
alfon posted this in #help-forum
Open in Discord
It happened when npm run build on local development but surprisingly it works on deployment (vercel)

- I've tried deploying in vercel it works ✅
- I've tried in a separate nextjs project and it works ✅
- I've tried in a new nextjs project and it doesn't work ❌
Answered by joulev
probably it is your ISP's problem
View full answer

9 Replies

Build Log
Ok I installed a new project and it shows the same error
Id like to ask if anyone can try creating a new create-next-app and directly building it to see if it works 🥴
@alfon Id like to ask if anyone can try creating a new create-next-app and directly building it to see if it works 🥴
   ~ ────────────────────────────────────────────────────────────   20:38:59
❯ cd dev/www

   ~/dev/www ────────────────────────────────────────────────────   20:39:01
❯ pnpm create next-app@latest
.../Library/pnpm/store/v3/tmp/dlx-39265  | Progress: resolved 1, reused 0, downl.../Library/pnpm/store/v3/tmp/dlx-39265  |   +1 +
.../Library/pnpm/store/v3/tmp/dlx-39265  | Progress: resolved 1, reused 0, downlPackages are hard linked from the content-addressable store to the virtual store.
  Content-addressable store is at: /Users/joulev/Library/pnpm/store/v3
  Virtual store is at:             ../../Library/pnpm/store/v3/tmp/dlx-39265/node_modules/.pnpm
.../Library/pnpm/store/v3/tmp/dlx-39265  | Progress: resolved 1, reused 0, downl.../Library/pnpm/store/v3/tmp/dlx-39265  | Progress: resolved 1, reused 1, downloaded 0, added 1, done
✔ What is your project named? … test-app
✔ Would you like to use TypeScript with this project? … No / Yes
✔ Would you like to use ESLint with this project? … No / Yes
✔ Would you like to use Tailwind CSS with this project? … No / Yes
✔ Would you like to use `src/` directory with this project? … No / Yes
✔ Use App Router (recommended)? … No / Yes
✔ Would you like to customize the default import alias? … No / Yes
Creating a new Next.js app in /Users/joulev/dev/www/test-app.

Using pnpm.

Initializing project with template: app-tw 


Installing dependencies:
- react
- react-dom
- next
- typescript
- @types/react
- @types/node
- @types/react-dom
- tailwindcss
- postcss
- autoprefixer
- eslint
- eslint-config-next

Packages: +340
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Packages are hard linked from the content-addressable store to the virtual store.
  Content-addressable store is at: /Users/joulev/Library/pnpm/store/v3
  Virtual store is at:             node_modules/.pnpm
Progress: resolved 348, reused 340, downloaded 0, added 340, done

dependencies:
+ @types/node 20.3.1
+ @types/react 18.2.13
+ @types/react-dom 18.2.6
+ autoprefixer 10.4.14
+ eslint 8.43.0
+ eslint-config-next 13.4.6
+ next 13.4.6
+ postcss 8.4.24
+ react 18.2.0
+ react-dom 18.2.0
+ tailwindcss 3.3.2
+ typescript 5.1.3

Done in 12.9s
Initialized a git repository.

Success! Created test-app at /Users/joulev/dev/www/test-app


   ~/dev/www ─────────────────────────────────────────────   24s   20:39:30
❯ cd test-app                                           

   ~/dev/www/test-app    main ─────────────────────────────────   20:39:35
❯ pnpm build                 

> test-app@0.1.0 build /Users/joulev/dev/www/test-app
> next build

- info Creating an optimized production build  
- info Compiled successfully
- info Linting and checking validity of types  
- info Collecting page data  
- info Generating static pages (4/4)
- info Finalizing page optimization  

Route (app)                                Size     First Load JS
┌ ○ /                                      0 B                0 B
â”” â—‹ /favicon.ico                           0 B                0 B
+ First Load JS shared by all              77.6 kB
  ├ chunks/524-95a7ddc85693c06e.js         25.2 kB
  ├ chunks/575debc0-5566e6d64c9cc942.js    50.5 kB
  ├ chunks/main-app-a391ba11012be8ea.js    217 B
  â”” chunks/webpack-78795a87dcb32c04.js     1.64 kB

Route (pages)                              Size     First Load JS
─ ○ /404                                   182 B          74.7 kB
+ First Load JS shared by all              74.5 kB
  ├ chunks/framework-510ec8ffd65e1d01.js   45 kB
  ├ chunks/main-d35b6b613e9fc946.js        27.7 kB
  ├ chunks/pages/_app-f1ab493a43d8b990.js  195 B
  â”” chunks/webpack-78795a87dcb32c04.js     1.64 kB

â—‹  (Static)  automatically rendered as static HTML (uses no initial props)
:SheaWeird:
wreeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
probably it is your ISP's problem
Answer
Eh how is it a solution