Support NextJS 13
See original GitHub issueHello,
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:
- Created 10 months ago
- Comments:24 (16 by maintainers)
Top GitHub Comments
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
With
"use client"
in component, it throws errors about missing “private-next-rsc-mod-ref-proxy” module.