DEV Community

loading...

Discussion on: How to: embed a Svelte app within a PHP application, with Live Reload

Collapse
tonyketcham profile image
Tony Ketcham Author • Edited

This can get a little wonky working with some npm-imported components. After importing the date-range-input component, I got a few Apache errors about too many files on the server and unknown errors about connecting to the SQL database(?). Those get fixed by saving in different files/restarting npm run dev. The component's CSS was 404'd too, although this component has a unique way of handling CSS.

So this is definitely experimental when it comes to using third party libraries/components, but otherwise it's worked like a breeze!