Hello,
I've an error regarding Kendo style when I import it into an SCSS file. Let's assume I want to customize Kendo theme, I have 4 scss files :
- _tokens.scss which contains color palette definition
- the kendo scss theme (kendo-theme-bootstrap in this case, but same issue with the default theme)
- _overrides.scss which may contains overrides (typhography, margin/padding on some components, etc)
- and a base.scss file containing basically the import of the 3 preceding files :
@import 'tokens';
@import '@progress/kendo-theme-bootstrap/dist/all';
@import 'overrides';
However, when I import my base.scss file into the Vue App (whether in the main.js or the App.vue), I've this error :
Plugin: vite:css
File: /src/node_modules/@progress/kendo-theme-bootstrap/dist/all.scss:37542:173
Error: expected ";".
╷
37542 │ background-image: url('../../node_modules/@progress/kendo-theme-bootstrap/dist/k-map-get($_kendo-data-uris, $kendo-spreadsheet-insert-image-dialog-preview-img'));
│ ^
╵
node_modules/@progress/kendo-theme-bootstrap/dist/all.scss 37542:173 @import
src/assets/kendo.scss 2:9 @import
src/assets/base.scss 1:9 root stylesheet
If I import directly the kendo-theme-bootstrap scss file in the main.js or the App.vue, there is no error. Here is the StackBlitz reproducing the error:
https://stackblitz.com/edit/vitejs-vite-f63fqh
How can I resolve this ?
Best Regards,
Fabien / SYSCO
Hello Ivan,
Yes, it is working with the file with interpolation !
Hi Ivan,
We're running into this same issue with KendoReact using Vite. Will you be distributing updated theme scss files with interpolation for that line?
Here is the PR: https://github.com/telerik/kendo-themes/pull/4256
We'll merge it and release a new version of the themes.