BoldDeskWe are launching BoldDesk on Product Hunt soon. Learn more & follow us.
Hi,
I have been trying to use scss styles in my project but can't make it work.
I get the following error:
--
Can't find stylesheet to import.
@import "ej2-base/styles/tailwind.scss";
--
I am using vite and this is my settings:
Package.json:
Everything works ok when I use @import '../node_modules/@syncfusion/ej2/tailwind.css';
Thanks
Alex
Hi Alex,
Greetings from Syncfusion support.
We have prepared a React with Vite application using SCSS based on your requirements and were unable to replicate the reported issue on our end. Additionally, we suspect that the reported issue may be caused by the code below, which may not have been included in the vite.config.js file. For your convenience, we have attached a working sample and code snippet for further references.
Code snippet:
[vite.config.js]
export default defineConfig({ plugins: [react(), visualizer()], css: { preprocessorOptions: { scss: { includePaths: ["node_modules/@syncfusion"] } } } }) |
Please get back to us if you need further assistance.
Regards,
Anbumani Rajendracholan