S
SolidJSโ€ข12mo ago
davedbase

Issue with using ApexCharts (solid-apexcharts) in Start

I'm having trouble with @wobsoriano's solid-apexcharts package in SolidStart. We're getting a weird "export" error when loaded. The package seems to be exported properly for for cjs and such so I don't easily see what the problem is. I put together a recreation to tinker with: https://stackblitz.com/edit/github-eq59tk?file=src%2Froutes%2Findex.tsx,vite.config.ts
StackBlitz
apex-chart-solid-start - StackBlitz
Run official live example code for Solid-start With Tailwindcss, created by Solidjs on StackBlitz
6 Replies
wobsoriano
wobsorianoโ€ข12mo ago
Hey Dave, Ill take a look asap ๐Ÿ™‚
davedbase
davedbaseโ€ข12mo ago
I appreciate you
wobsoriano
wobsorianoโ€ข12mo ago
Apexcharts has some weird exports, and works only when you make it a unstable_clientOnly component. Same issue here - https://github.com/wobsoriano/solid-apexcharts/issues/1
GitHub
Unexpected token "export" ยท Issue #1 ยท wobsoriano/solid-apexcharts
Thanks for creating this for SolidJS! I am using the SolidStart project (https://start.solidjs.com) to create my local project. When adding your package to the project and using the example from yo...
davedbase
davedbaseโ€ข12mo ago
@ladybluenotes have a look. @wobsoriano thanks! ๐Ÿ™‚
wobsoriano
wobsorianoโ€ข12mo ago
always! ๐Ÿ™‚