Premium support for our pure JavaScript UI components


Post by gergo.szathmari »

Hi,
I'm trying to integrate the Scheduler Pro into our project but I'm stuck with an error I can't seem to find solution to. We're using Webpack to compile our files and the compilation of the schedulerpro (material) css file always fails with this message: 'error evaluating function max: incompatible types in file'
I've tried numerous ways and options of the less-loader but none seems to work. I'd like to ask for your help.
Thank you very much


Post by sergey.maltsev »

Hi!

I suppose it should be possible to not process scheduler css file by your loader.
We don't use less-loader here so it would be good if you share some simple project with your loader configuration so we can try it and see an error.

One other possible way is to not pack file and use it externally in html page inside <link rel="stylesheet"> tag.
Please check this guide
https://www.bryntum.com/docs/scheduler-pro/guide/Scheduler/customization/styling#using-different-themes

Note this guide above is for Scheduler, not Scheduler Pro. So please change style file name accordingly.


Post by gergo.szathmari »

Thank you for your reply.
The problem was solved by importing the .css file into a .less file with

@import (inline) ...

and passing that to the less-loader in webpack.


Post Reply