Giter VIP home page Giter VIP logo

Comments (6)

ebayes avatar ebayes commented on July 18, 2024 2

Hi! I've also been having the same issue not being able to see the charts in the Next.js app directory. I tried the fixes mentioned above (i.e. removing h-72, and updating tailwind.config.js and the recharts dependency) but I'm still having no luck. I think it's to do with conflicts with Shadcn UI (see here: shadcn-ui/ui#1144). Any ideas?

Relevant files:

page.tsx in app directory: https://github.com/ebayes/supa_final/blob/color_scheme/app/platform/dashboard/page.tsx
component: https://github.com/ebayes/supa_final/blob/color_scheme/components/testchart.tsx

from tremor.

dardanbujupaj avatar dardanbujupaj commented on July 18, 2024 1

@nithinkodadhavadee Ok, I had a look at your repository.

It seems you're not experiencing the same problem, but I found an issue in your configuration.

The content path in your tailwind.config.ts does not match your project structure. Try this change:
Screenshot 2023-11-28 at 16 04 48

from tremor.

severinlandolt avatar severinlandolt commented on July 18, 2024

Hey there, I just tested your code and in another project and works for me. However, I cloned your repo and I git the same issue. You can resolve it by removing the h-72 from the Area chart args object.

from tremor.

nithinkodadhavadee avatar nithinkodadhavadee commented on July 18, 2024

I do not understand why that did not work for me, but it did for you. Have I done something wrong with the setup?

from tremor.

dardanbujupaj avatar dardanbujupaj commented on July 18, 2024

@nithinkodadhavadee I have the same issue.
It seems to be an update to the recharts dependency for me.

Can you try adding the recharts dependency explicitely to your package.json with a pinned version?

"recharts": "2.9.3",

(and of course run npm install and npm run dev afterwards)

This helped in my case, I wonder if this works for you as well?

from tremor.

severinlandolt avatar severinlandolt commented on July 18, 2024

@nithinkodadhavadee Have you been able to solve you issue?

from tremor.

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.