question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support NextJS 13

See original GitHub issue

Hello,

I am upgrading a project from NextJS12 to NextJs13 and there is an error concerning this package.

When I add a new Icon the application throws an error <Icon icon="mdi:facebook" className="w-5 h-5"/>

error - (sc_server)\node_modules\@iconify\react\dist\iconify.js (1795:54) @ eval error - TypeError: Class extends value undefined is not a constructor or null at eval (webpack-internal:///(sc_server)/./node_modules/@iconify/react/dist/iconify.js:1643:55) at Object.(sc_server)/./node_modules/@iconify/react/dist/iconify.js (E:\JEEBIE.ME\Projets\OCLR\oc-lr.com - V2\.next\server\app\sites\[subdomain]\page.js:828:1) at __webpack_require__ (E:\JEEBIE.ME\Projets\OCLR\oc-lr.com - V2\.next\server\webpack-runtime.js:33:42) at eval (webpack-internal:///(sc_server)/./components/common/Footer.tsx:6:72) at Object.(sc_server)/./components/common/Footer.tsx (E:\JEEBIE.ME\Projets\OCLR\oc-lr.com - V2\.next\server\app\sites\[subdomain]\page.js:764:1) at __webpack_require__ (E:\JEEBIE.ME\Projets\OCLR\oc-lr.com - V2\.next\server\webpack-runtime.js:33:42) at eval (webpack-internal:///(sc_server)/./app/sites/[subdomain]/layout.tsx:13:83) at Object.(sc_server)/./app/sites/[subdomain]/layout.tsx (E:\JEEBIE.ME\Projets\OCLR\oc-lr.com - V2\.next\server\app\sites\[subdomain]\page.js:742:1) at __webpack_require__ (E:\JEEBIE.ME\Projets\OCLR\oc-lr.com - V2\.next\server\webpack-runtime.js:33:42) at Object.layout (webpack-internal:///(sc_server)/./node_modules/next/dist/build/webpack/loaders/next-app-loader.js?name=app%2Fsites%2F%5Bsubdomain%5D%2Fpage&appPaths=%2Fsites%2F%5Bsubdomain%5D%2Fpage&pagePath=private-next-app-dir%2Fsites%2F%5Bsubdomain%5D%2Fpage.tsx&appDir=E%3A%5CJEEBIE.ME%5CProjets%5COCLR%5Coc-lr.com%20-%20V2%5Capp&pageExtensions=tsx&pageExtensions=ts&pageExtensions=jsx&pageExtensions=js&rootDir=E%3A%5CJEEBIE.ME%5CProjets%5COCLR%5Coc-lr.com%20-%20V2&isDev=true&tsconfigPath=tsconfig.json!:28:129) { type: 'TypeError', page: '/sites/[subdomain]' }

I am using

“next”: “^13.0.2” “react”: “^18.2.0” “@iconify/react”: “^4.0.0”

Issue Analytics

  • State:open
  • Created 10 months ago
  • Comments:24 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
cyberaliencommented, Nov 17, 2022

This can’t possibly be intended by design. Very weird.

I’ve reported this as bug to Next repository, including your demo repository: https://github.com/vercel/next.js/issues/43051

1reaction
cyberaliencommented, Nov 17, 2022

With "use client" in component, it throws errors about missing “private-next-rsc-mod-ref-proxy” module.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Blog - Next.js 13
Next.js 13 introduces layouts, React Server Components, and streaming in the app directory, as well as Turbopack, an improved image ...
Read more >
Blog - Next.js 13.1
Next.js 13.1 · Improved reliability and support for app directory · Built-in module transpilation (stable) · Import resolution for smaller bundles.
Read more >
Upgrade Guide - Next.js
v13 Summary · The Supported Browsers have been changed to drop Internet Explorer and target modern browsers. · The minimum Node. · The...
Read more >
Getting Started | Next.js
Get started with Next.js in the official documentation, and learn more about all our features!
Read more >
Next.js by Vercel - The React Framework
Next.js gives you the best developer experience with all the features you need for production: hybrid static & server rendering, TypeScript support, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found