Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

423
Views
NextJS: error - Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object

I am getting this error

error - Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.

My \components\LayoutWrapper.js

import Logo from "@next/svg"

<div className="mr-3 pt-2">
  <Logo src={icon} width="25px" height="25px" />
  {typeof siteMetadata.headerTitle === 'string' ? (
    <div className=""></div>
  ) : (
    siteMetadata.headerTitle
  )}
</div>
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Fixed and working

import Image from 'next/image'
import logo from '../assets/images/logo.svg'

<div className="mr-3 pt-2">
  <Image src={logo} width="25px" height="25px" />
  {typeof siteMetadata.headerTitle === 'string' ? (
    <div className=""></div>
  ) : (
    siteMetadata.headerTitle
  )}
</div>
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!