react-apexcharts
react-apexcharts copied to clipboard
Monorepo, Module not found: Can't resolve 'apexcharts/dist/apexcharts.common'
Greetings everyone! I'm having a extremelly annoying problem:
I have a monorepo with some systems and I'm using "react-apexcharts". I already ran npm install and inside my root node_modules (not the node_module inside the systems folders) my react-apexcharts folder and apexcharts folder are there. My problem is when I load a page of my system and receive this error:
Error: Module not found: Can't resolve 'apexcharts/dist/apexcharts.common'
This is my import inside my NextJs project that is giving me this error:
const ApexCharts = dynamic(() => import("react-apexcharts"), { ssr: false });
If i install it without being in a monorepo, it works.