Serenity Framework Integration

Hi. I am using Serenity Framework with my projects. I am using .net core component just fine. But I want to use TypeScript component as well. Can you help me about how to implement that to this framework? 


I installed the packages but when I try to import I get the error below: 

Error TS6131 (TS) Cannot compile modules using option 'outFile' unless the '--module' flag is 'amd' or 'system'.

If I configure my tsconfig for module:'amd' then all my main references are lost.

The thing is serenity framework doesn't allow me to use import. Is there any other way to import these packages? 

As you can see serenity uses typescript for dialogs and grids. Integrating syncfusion to that would be perfect!

 


1 Reply 1 reply marked as answer

RS Ragunath Sukumaran Syncfusion Team July 27, 2022 03:05 PM UTC

Hi Muhammed,


We have found that the Serenity is using the namespace based script for the typescript file instead of modules based script, but the files of our Syncfusion packages are modules based script. The modules can’t be used in the namespace and it is mentioned by the Serenity also. Please refer the below link.
https://github.com/serenity-is/Serenity/issues/4499


But we can use the Syncfusion Javascript components in the Serenity by referring the scripts and styles via CDN. Please refer to the below documentation for using the Syncfusion Javascript components.
https://ej2.syncfusion.com/javascript/documentation/introduction/


We have created a serenity project and added our Javascript diagram component in the serenity UserGrid.ts page and referred the scripts via CDN in the UserIndex.cshtml file and it is working fine at our end. For you convenience we have attached the sample, please refer to the below sample.
Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/Serene1-216768481


Also Serenity have published a documentation on using third party plugin in the Serenity. Please refer to the below documentation.
https://serenity.is/docs/howto/how_to_use_a_third_party_plugin_with_serenity


Please get back to us if you have any queries.


Regards,
Ragunath S


Marked as answer
Loader.
Up arrow icon