Home › Forums › Chart Support › Charts break on built/server for vite react app. › Reply To: Charts break on built/server for vite react app.
@denzil,
Adding commonjsOptions: { transformMixedEsModules: true } to the build option of Vite config should fix this issue. Please refer to this Stack Overflow thread for more information about the same.
commonjsOptions: { transformMixedEsModules: true }
__ Sachin Bisht Team CanvasJS