The php artisan livewire-charts:install command should have copied the scripts needed by this package into your public directory - were these scripts included in your version control, or were they ignored?
@tykus I checked my files and they are there. I think it was the directives that were causing the error so I ended up removing them and the error was gone. But now I get Alpine Expression Error: livewireChartsColumnChart is not defined and Alpine Expression Error: init is not defined
@j_watson it is difficult to understand the cause of your issue. Is there anything non-conventional about your server configuration? Do you serve from the public directory, or is there a public segment in your URL?
I meant what URL in your network tab is giving the 404 - I am wondering if the APP_URL environment variable is incorrect (compared with the URL your application itself is using), and is therefore trying to load the scripts from an invalid URL.
@tykus Nothing seems wrong, I checked the Network tab and all seem to be running just fine.
The erros are Uncaught ReferenceError: livewireChartsColumnChart is not defined and Uncaught ReferenceError: init is not defined and they're referencing my Alpine CDN <script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/cdn.min.js"></script>
@j_watson I don't know how to help in that case. Perhaps if you try to make a very simple page and try to render the simplest chart, nothing else. I don't know why you needed to include the Alpine and Apex CDNs above, so maybe try to only include the Livewire and Livewire Charts directives.
@tykus After I did what you said and think I know what's causing the error but I don't know how ti fix it.
This URL https://laraveltest.site/vendor/livewire/livewire.js can't detect my livewire.js file which is in public/vendor/livewire/livewire.js and this URL https://almondengineering.site/vendor/livewire-charts/app.js can't detect my app.js file in my public/vendor/livewire-charts/app.js directory.
Both URL's are working locally but return the 404 on live server.
@tykus you were actually right, I had to manually move some resources because the URL was invalid. The files were unconventionally deep in my directory when uploaded live unlike on my local server where everything is just upfront. Thanks a lot tykus!