datatables
datatables copied to clipboard
Unable to find `src/shared/style.css`
Starting a fresh svelte project and importing the latest version of the datatables library I get the following error:
Unable to resolve `@import "src/shared/style.css"` from /home/tjbakker/dev/lentedigital/datatableTesting/node_modules/@vincjo/datatables/dist/src/shared
✘ [ERROR] Error while preprocessing /home/tjbakker/dev/lentedigital/datatableTesting/node_modules/@vincjo/datatables/dist/src/shared/Datatable.svelte - [postcss] ENOENT: no such file or directory, open 'src/shared/style.css'
My guess this is caused by the following line in src/shared/Datatable.svelte
:
@import '$lib/src/shared/style.css';
Edit:
Further investigation shows that it is working on version 34 but it breaks from version 35 onwards.
I tried changing $lib/src/shared/style.css
into simply ./style.css
and the error disappears, but the custom styles in my own application that is using datatables is then completely messed up.