Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird bundle issues with ts-route template and apex-charts library #59

Open
danielo515 opened this issue Jul 12, 2022 · 2 comments
Open
Labels
bug Something isn't working

Comments

@danielo515
Copy link
Contributor

Hello folks! I'm having a weird error with the apex-charts solid wrapper. Internally it uses a reference to a dom node, and in development it works perfectly. But as soon as I bundle it for production, when it tries to access the dom node reference within the onMount callback the dom node reference is undefined and it throws because it passes undefined to apex-charts.
Here is the code of the wrapper: https://github.com/wobsoriano/solid-apexcharts/blob/master/src/SolidApexCharts.tsx#L69-L88
Everything looks correct. At the beginning I thought it may be a problem with the library, but then I copied the library code into my project (this one was easy, it's a single file) and now it works perfectly both in dev and in production bundle, so this is clearly a bundling problem.
Can it be related to different solid versions? Yarn tells me that there is only one solid version installed, so that should not be it.

@amoutonbrady
Copy link
Member

Hey, sorry for the delay.

I know it's been almost a year, but do you still have issues? :)

@amoutonbrady amoutonbrady added the bug Something isn't working label Jun 17, 2023
@danielo515
Copy link
Contributor Author

danielo515 commented Jun 22, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants