Git Product home page Git Product logo

Comments (3)

Pauan avatar Pauan commented on June 1, 2024

Hi @vasya10,

AmCharts is a client-side library only, it does not support server-side rendering at all.

This is not a limitation in amcharts3-react, it is a limitation in AmCharts itself.

I can add in some code in amcharts3-react which will cause it to be disabled on the server, but first I need to know: why are you trying to use amcharts3-react on the server?

from amcharts3-react.

vasya10 avatar vasya10 commented on June 1, 2024

Hi @Pauan
I don't need to load amcharts3-react on server. But many of my components are loaded on server side. So if I compose amcharts in one of those components, the above error occurs during import/require. I can prevent rendering charts within the render() method (which is fine for me), but i'd like to avoid the workaround for import itself.

I think it will be useful to disable amcharts3-react on server side, since its client side only anyway.

from amcharts3-react.

Pauan avatar Pauan commented on June 1, 2024

Hi @vasya10,

I changed it so that it will not break if window is not defined.

Please try out version 1.1.2 of amcharts3-react and let me know if it solves the problem for you.

from amcharts3-react.

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.