Apex chart in Perspective component

I'm building a custom perspective component using apex chart. What do I need to include the apexchart bundle in the module?

I got the perspective component working on my local ignition instance (running on docker) but when I install the module in another ignition instance (prod instance), the component gives the following error
TypeError: t.put is not a function
when try to call chart.render().

What could've caused this error

What are you trying to build? You know there is an Perspective ApexChart component already, right? Or are you trying to expand on that module?