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

274
Views
Warning: Extra attributes from the server using Custom Web Components

in my company we have a component library build with stencil. And now we want to move some websites to next.js. I created a new next.js project and referenced the needes javascript files for my web-components. The components are displayed but i get the warning: "Warning: Extra attributes from the server [...]" Can someone explain why this occurs and maybe how to tell next.js there is nothing wrong happening?

The full Error is:

Extra attributes from the server: class
    at my-ui-icon
    at a
    at li
    at ul
    at div
    at div
    at div
    at nav
    at div
    at Navbar (webpack-internal:///./components/navbar.js:35:157)
    at div
    at Layout (webpack-internal:///./components/layout.js:37:157)
    at MyApp (webpack-internal:///./pages/_app.js:21:24)
    at ErrorBoundary (webpack-internal:///./node_modules/@next/react-dev-overlay/lib/internal/ErrorBoundary.js:26:47)
    at ReactDevOverlay (webpack-internal:///./node_modules/@next/react-dev-overlay/lib/internal/ReactDevOverlay.js:86:23)
    at Container (webpack-internal:///./node_modules/next/dist/client/index.js:258:5)
    at AppContainer (webpack-internal:///./node_modules/next/dist/client/index.js:754:24)
    at Root (webpack-internal:///./node_modules/next/dist/client/index.js:893:25)

The "class" attribute is in the shadowDom.

about 4 years ago · Juan Pablo Isaza
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!