svelte-schema-form icon indicating copy to clipboard operation
svelte-schema-form copied to clipboard

Error when installing using sveltekit 1.x using vite 4.0

Open gh-PonyM opened this issue 2 years ago • 0 comments

Hi folks! Appreciate the work you did on this lib. I wanted to test it using sveltekit 1.0 release and got stuck installing the library from npm. The vite version has changed to version 4 and the config will be slightly different for the new version. As pointed out in #8, building the library with npm run package will not add the css files to exports in the package/package.json even though they are shipped inside the package, can thus not be imported. The default behaviour for scss is that it's just injected into the component, and this is handled by vite in the background. I could also not find an solution on how to tackle the problem of telling vite to add those css file to the package exports.

gh-PonyM avatar Feb 01 '23 20:02 gh-PonyM