Skip to content
Sign inJoin waitlist

Troubleshooting — Cerette Next.js

Most problems with this Next.js template come from a content typo, a missing image or a form variable not set on the host. Those answers come first.

Then come the questions buyers ask most.

npm install fails, or the site behaves oddly after an update. Delete node_modules/ and package-lock.json, then npm install again. Check that node -v is 20.9 or newer.

Port 3000 is already in use. npm run dev -- -p 3001, or stop whatever holds the port.

npm run dev or npm run build stops with “Failed to fetch font Plus Jakarta Sans” (or Marcellus, Inter). The fonts are downloaded from Google Fonts when the site builds (and the first time the development server runs), and the message ends with “Please check your network connection”. Connect, check your proxy or firewall, and run it again. To build without that download, host the fonts yourself with next/font/local (Making it look like your brand).

Module not found: Can't resolve '@/content/…' The path or the file name is wrong. @/ means src/, so @/content/site is src/content/site.ts. File names are case-sensitive on the servers that build your site, even when they are not on your laptop.

Property 'x' is missing in type … A content item lacks a field that src/content/types.ts requires. Your editor names the file and the line; add the field, or mark it optional in the type.

Type '"Landscape"' is not assignable to type 'PostCategory'. A post’s category must be one of the three in PostCategory (src/content/types.ts): Architecture, Construction or Interior. Add your word to that type to use it. (A project’s category is free text.)

Source has 3 element(s) but target requires 4 on a project’s images. A project takes exactly four photos in images (Editing the content).

Cannot find name 'PageProps' (or 'LayoutProps') from npx tsc --noEmit. Next.js generates those types into .next/. Run npm run dev or npm run build once (or npx next typegen), then check again.

An image does not appear. The file must be in public/images/ and the content must refer to it as /images/<file>: same spelling, same extension, no public in the path. A photo from another address needs its host in images.remotePatterns in next.config.ts.

A photo is cropped in the wrong place. Every photo sits in a frame and is cropped to fill it, from the centre, and the frames change shape between phone, tablet and desktop. Crop the photo to the shape you want and keep the subject away from the edges (Editing the content).

The Home video doesn’t play, or shows only its poster. Check home.hero.video.src in src/content/pages/home.ts: a file in public/videos/hero.mp4 is written /videos/hero.mp4. Use an H.264 MP4: every browser plays it. Some phones in power-saving mode don’t play background videos at all and show the poster instead.

The build fails but npm run dev was fine. The build is stricter: it checks the types and renders every page. Read the first error, not the last; it names the file. A common cause is a missing field in a content item (the development server doesn’t check types).

The build stops after I added an icon. The style guide lists every icon on purpose, so a new one must be added to icons in src/app/style-guide/tokens.ts, or delete src/app/style-guide/ (Making it look like your brand).

The form says “Something went wrong”. The provider rejected the request, or a variable is missing. The reason is in your host’s function logs (Vercel: the deployment’s Logs tab), after [forms] New inquiry from the Cerette website could not be delivered (or “New service inquiry…”). Check that the environment variables are set for the environment you deployed to, that FORM_PROVIDER names a provider that exists, and redeploy after adding them. An empty project type or budget shows the same message: they are required. With Mailchimp, a submission without an e-mail fails too: make the e-mail required (Forms).

The form says “Thank you” but nothing arrives. With FORM_PROVIDER=console (the default, also when the variable is missing) submissions are only written to the server log: set a provider (Forms). If you added a field named fax, rename it: that name is the hidden spam trap, and a submission that fills it is dropped.

An inquiry arrived without a name or an e-mail. As shipped, only the project type and the budget are required. Add required: true to name and email in src/content/pages/forms.ts (Forms).

“Book a call” opens cal.com. That is the demo’s placeholder booking page. Put your own booking page (or /contact) in bookingHref in src/content/site.ts: every “Book a call” and “Schedule Consultation” button reads it.

A project’s services are missing on its page. Its services lists a slug that matches no service, and such slugs are left out. Write the service’s slug ("architecture"), not its name.

A new project isn’t on Home. Home shows the first six projects of src/content/collections/projects.ts. Move it up in the file.

A new post isn’t first on Blog or Home. Posts are sorted by date, newest first. Check the date’s format: "2026-06-12" (year, month, day).

“Similar posts” is missing under a post. No other post has the same category, and the block is left out then.

Blog shows only some of the posts. That’s on purpose: six show at first on desktops and four on tablets and phones, and as many again appear each time the visitor nears the end of the list. Every post is in the page’s HTML from the start. To change the numbers, set pageSize in src/content/pages/blog.ts.

About shows only six people on my phone. The same: the rest appear as you scroll to the end of the list (team.pageSize in src/content/pages/about.ts). On desktops, point at a name to see that person.

I changed the quote (or “Why Cerette”) on Services, and Home changed too. Services and About show Home’s quote, Services shows Home’s “Why Cerette”, and About shows Home’s numbers and awards: one copy for all of them, in src/content/pages/home.ts. To give a page its own, write a new object in its file instead of home.quote or home.why.

The share image or title is the old one. Facebook, LinkedIn and X cache them. Use their debuggers to refresh, and confirm that site.url is your domain.

Nothing moves: the titles, the blocks rising into view. The visitor’s system (yours, if you see it) has “reduce motion” switched on, and the site honours it (Making it look like your brand). Some pages have no scroll effects at all: a project, a service, a post, Services, Blog and Contact.

An AGENTS.md or a CLAUDE.md appeared in the project. Next.js 16.4 adds them when npm run dev runs next to an AI coding assistant (Install and run). Keep or delete them; the site doesn’t use them.

Can I use this template for a client? See License: that is the one place that answers it for your licence.

Can I remove the style guide, a whole page or a section? Yes:

  • the style guide: delete src/app/style-guide/;
  • a page: see Pages and sections;
  • a section: delete its line in the page file, for example <HomeAchievement … /> in src/app/page.tsx.

Can I change the fonts to my brand’s? Yes: Making it look like your brand.

Do I need a CMS? No. Content is files you edit. Add one when somebody who does not use a code editor has to publish (Using a headless CMS).

Can I add a collection, such as careers or press? Yes, the way the posts work: a type in src/content/types.ts, a file in src/content/collections/, functions in src/lib/content.ts and two pages in src/app/ (Pages and sections, Pages and sections).

Can I write the site in another language? All the copy is content, so write it in your language. Then set lang in src/app/layout.tsx (and locale in its openGraph and in src/lib/meta.ts), the date formats in src/lib/format.ts ("en-US"), and the interface words listed in Editing the content. The template has no language switch or language-based routing.

Does the site need a cookie banner? As shipped, the template sets no cookies and loads no third-party scripts: the fonts are served from your own domain. The demo’s hero video is the one file loaded from another server; once your own video is in public/, nothing is. Anything you add (analytics, an embedded map, a booking widget) is yours to declare.

Can I show dates in another format? Yes. Post dates (“Jun 12, 2026”) come from formatDate and legal dates (“May 26, 2026”) from formatLongDate, both in src/lib/format.ts.

Can I sell a site I build with this? Building sites for clients is what the licence is for; reselling the template itself as a template is not. The licence has the exact wording.

Will it work with Tailwind plugins, shadcn/ui, or my component library? Yes. It is a standard Next.js + Tailwind CSS 4 project; add packages as usual. The design tokens are plain CSS variables, so other libraries can read them.

How do I update to a new version of the template? Download the new release and copy your src/content/, public/, your icons and your theme.css into it. Then re-apply any component changes you made. CHANGELOG.md lists what moved.

Can you customise it for me, or build my site? Yes. Marcframe, the studio behind this template, updates templates to your needs (brand, content, new pages and features), builds custom templates and designs new websites. Get in touch at marcframe.com/contact or hire us on Contra.

Something is broken and none of this helps. Support and updates: https://framebrick.co/support. Send the page, the browser, and the error text or a screenshot: it makes the answer much faster.