Coder Social home page Coder Social logo

Comments (3)

vadim-givola avatar vadim-givola commented on June 16, 2024 1

I managed to fix it by changing the way you import icons in your components.
Try to use this one: https://github.com/react-icons/react-icons?tab=readme-ov-file#installation-for-meteorjs-gatsbyjs-etc

from react-icons.

alamenai avatar alamenai commented on June 16, 2024

Hi, we are facing the same issue:

image

The reason behind it is the incompatibility between NextJS and React-Icons in this file :

index.ts

export * from "./iconsManifest";
export * from "./iconBase";
export * from "./iconContext";

If we add pages folder the issue went but it is not the right solution.

from react-icons.

Billocap avatar Billocap commented on June 16, 2024

The solution proposed by @vadim-givola worked.

Does it also solve the performance issue? Like the one mentioned here vercel/next.js#48748

PS: I updated the version of node in the sample repository also I left the fix in a separate branch called bugfix-proposed-fix

from react-icons.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.