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

Some graphs broken since 01/11: Failed to execute 'appendChild' #112

Open
EduardoFoxRaposo opened this issue Nov 2, 2024 · 8 comments
Open

Comments

@EduardoFoxRaposo
Copy link

apexcharts:6 Uncaught (in promise) TypeError: Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'.
at si.add (apexcharts:6:37764)
at t.value (apexcharts:6:307485)
at t.value (apexcharts:6:308533)
at t.value (apexcharts:6:305579)
at t.value (apexcharts:38:31035)
at t.create (apexcharts:6:5772)
at apexcharts:38:29632
at new Promise ()
at t.value (apexcharts:38:14507)
at P4:2193:28

@centrust
Copy link

centrust commented Nov 3, 2024

Same Error

@Elshaden
Copy link

Elshaden commented Nov 3, 2024

Same here

@Elshaden
Copy link

Elshaden commented Nov 3, 2024

Fixed by reverting back to : https://cdn.jsdelivr.net/npm/[email protected]
replace

{{ $chart->cdn() }}

with

https://cdn.jsdelivr.net/npm/[email protected]
<div>
    <div >
        {!! $chart->container() !!}
    </div>

    <script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>

    {{ $chart->script() }}
</div>


@EduardoFoxRaposo
Copy link
Author

I fixed it by reverting the version in the vendor dir:

IMG_20241103_223750_562.jpg

@Elshaden
Copy link

Elshaden commented Nov 3, 2024

@EduardoFoxRaposo ,
You could do that, BUT, if you composer update, this will be over written and the problem unless fixed will come back. unless you forked it and used your own version.

I would rather use my solution until a fix is available

@EduardoFoxRaposo
Copy link
Author

Great point! I'll do the same thing.

@centrust
Copy link

centrust commented Nov 3, 2024

@Elshaden Thanks, it works.

@marineusde
Copy link
Contributor

I do a fork of this project in april 2024, cause its not maintained anymore: https://github.com/marineusde/larapex-charts

My fork works with Laravel 11 (in my projects its 11.34.2 now).

but btw: dont use external libraries. Its so easy to implement it in the vite.config.js with vite-plugin-static-copy:

viteStaticCopy({
            targets: [,
                {
                    src: 'node_modules/apexcharts/dist/apexcharts.js',
                    dest: 'js'
                }
            ]
        })
...

then include the file in your page:

<script src="{{ asset('build/js/apexcharts.js') }}"></script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants