Questions tagged [vercel]

Vercel is the platform for frontend developers. Vercel has zero-configuration support for 35+ frontend frameworks and integrates with your headless content, commerce, or database of choice.

Vercel is the platform for frontend developers, providing the speed and reliability innovators need to create at the moment of inspiration.

They enable teams to iterate quickly and develop, preview, and ship delightful user experiences. Vercel has zero-configuration support for 35+ frontend frameworks and integrates with your headless content, commerce, or database of choice.

2631 questions
75
votes
6 answers

Error: Image Optimization using Next.js default loader is not compatible with `next export`

I got this error when deploying Next.js to Netlify. Error: Image Optimization using Next.js default loader is not compatible with `next export`. Possible solutions: 6:47:15 AM: - Use `next start`, which starts the Image Optimization API. 6:47:15…
Chukwuemeka Maduekwe
  • 6,687
  • 5
  • 44
  • 67
45
votes
7 answers

/tmp/chromium: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory Vercel

when I try to access my API uploaded on vercel server, I'm getting this error. Did anyone have the same error? When I run it locally, it works fine. 2021-02-15T19:38:59.218Z 0109b575-a2e7-478e-aefe-aa3335b5b6b8 ERROR Error: Failed to launch…
Lucas Borim
  • 575
  • 1
  • 5
  • 7
42
votes
1 answer

Type '{}' is not assignable to type 'ReactNode'

I got this error, but only in Vercel, not locally, why? error: 'FontAwesomeIcon' cannot be used as a JSX component. ./components/Services/ServiceContainer.tsx:25:6 12:01:54.967 Type error: 'FontAwesomeIcon' cannot be used as a JSX…
János
  • 32,867
  • 38
  • 193
  • 353
34
votes
28 answers

Next JS build failing due to ''Export encountered errors on following paths"

I am encountering this build error when I deploy my next js site to vercel 15:02:38 > Build error occurred 15:02:38 Error: Export encountered errors on following paths: 15:02:38 /about/undefined 15:02:38 at exportApp…
Jegs
  • 579
  • 1
  • 6
  • 14
33
votes
17 answers

How to fix Next.js Vercel deployment module not found error

My next.js app works on my machine and was working when deployed on Vercel but now it fails when building on Vercel with the following error: I've tried deleting node_modules and running npm install a few times but with no joy. Any help would be…
Tom Wicks
  • 785
  • 2
  • 11
  • 28
28
votes
9 answers

NextJS deployed to Vercel: 404 page not found

I have a NextJS app without an integrated api that I want to deploy to Vercel. It works fine when I run it locally yarn run dev and I can also build it yarn run build without any errors. When I deploy it Vercel, however, I receive a 404 Error. Here…
siva
  • 1,183
  • 3
  • 12
  • 28
28
votes
11 answers

Why does react-router not works at vercel?

I am trying to publish a serverless web to vercel. I want to use react-router and this works good on my computer but when I deploy it It doesn't works Can somebody help me? (I want to do it without server) // My main code import React from…
user12171726
24
votes
6 answers

Failed to load config "next/babel" to extend from eslintrc.json

When I'm trying to build the Next.Js app then the below error is coming with a successful build. This error is showing when I deploy the app in Vercel. error - ESLint: Failed to load config "next/babel" to extend from. Referenced from:…
DCodeMania
  • 1,027
  • 2
  • 7
  • 19
22
votes
13 answers

Why is my favicon not working in my next js app?

For some reason my favicon is not working. I have the favicon saved as favicon.ico in the /public directory and am referencing it in the of my pages (located in the /pages directory) but to no avail. Can anyone help? - Here is my code for my…
atman_lens
  • 474
  • 2
  • 6
  • 16
21
votes
5 answers

Flash Of Unstyled Text (FOUT) on reload using next.js and styled components

I'm using global style from styled components with next.js and every time I reload my page I can see the font flickering. I have my font files in public/fonts/Inconsolata I've looked everywhere in spectrum chat, next.js github issues but can't…
m00
  • 297
  • 1
  • 5
  • 13
20
votes
3 answers

Next.js Static Regeneration on demand

I absolutely love Next.js's Incremental Static Regenration. However, I'm looking for a way to force static pages regeneration on demand. Ideally via a command that I can trigger with an API call when the data in my source db change. The idea is to…
ΔO 'delta zero'
  • 3,506
  • 1
  • 19
  • 31
18
votes
9 answers

Getting a 504/502 error on api requests in Nextjs deployed on Vercel

I have developed an application in Next.js. For the backend I have used the api endpoints configured in Nextjs which rest inside pages/api. The api end points quite often return 502(Gateway timeout error) or 504(There is a problem with our…
Usman Abdur Rehman
  • 334
  • 1
  • 3
  • 13
17
votes
1 answer

Vercel Next js Uncaught (in promise) ChunkLoadError: Loading chunk 0 failed

After deleting node modules and package-lock.json, I am getting the above error, when I reload any page. When I restart the project it works fine for the first time. But again when i reload the page, showing a blank page and giving the above error…
try on
  • 203
  • 1
  • 2
  • 9
17
votes
5 answers

How to fix an error "CODE NOT FOUND" in Vercel?

I tried to deploy my app to Vercel (create-react-app starter). It was deploy successful, no errors in console or my vercel account. But when i clicked a link, i have this message: 404: NOT_FOUND Code: NOT_FOUND ID: ... How to fix that? I have…
Dmitriy
  • 329
  • 1
  • 2
  • 6
17
votes
3 answers

Next.js/React warning when generating random values in a component

I'm building a next.js app that generates some random numbers which generates the warning: Warning: Text content did not match. Server: "1" Client: "2" I think I understand why I get this warning (the virtual DOM is kinda-sorta-out-of-sync with…
Koen
  • 3,626
  • 1
  • 34
  • 55
1
2 3
99 100