str.match is not a function 19.3.43

I ran into a problem when using the scheduler with custom templates for days, weeks, months etc.
On October 11th I tried it the first time where it worked. 

the package.json had the following content for synfusion components:

"@syncfusion/ej2-base": "^19.3.43",
"@syncfusion/ej2-vue-base": "19.2.46",
"@syncfusion/ej2-vue-schedule": "^19.3.44",

Today I wanted do dwelve into it a bit more. Upon opening my component I get greeted with the error str.match is not a function

TypeError: str.match is not a function

    at evalExp (template.js?b0d1:83)

    at compile (template.js?b0d1:63)

    at Object.Engine.compile (template-engine.js?03ef:155)

    at compile (template-engine.js?03ef:28)

    at Schedule.templateParser (schedule.js?1dd3:1136)

    at Schedule.initializeTemplates (schedule.js?1dd3:395)

    at Schedule.initializeView (schedule.js?1dd3:384)

    at Schedule.renderElements (schedule.js?1dd3:191)

    at Schedule.initializeResources (schedule.js?1dd3:167)

    at Schedule.render (schedule.js?1dd3:127)


Ok, maybe something is wrong with template (although it worked 1 month ago). I copied the example https://ej2.syncfusion.com/vue/demos/#/bootstrap5/schedule/events-template.html and implented the datasource. Same error.
I looked up the version history and locked the 3 packages to 19.3.43, deleted my package.lock + node_modules folder, reinstalled. same error.

This is kind of annyoing.


3 Replies 1 reply marked as answer

NR Nevitha Ravi Syncfusion Team November 25, 2021 07:18 AM UTC

Hi Markus, 

Greetings from Syncfusion Support. 

Could you please refer below forums to resolve the reported issue? 

Regards, 
Nevitha 
 


Marked as answer

MB Markus Baldasty November 25, 2021 08:56 AM UTC

npm i --legacy-peer-deps fixed it, thank you



VM Vengatesh Maniraj Syncfusion Team November 26, 2021 11:26 AM UTC

Hi Markus, 
 
You are most welcome. 
 
Please get in touch with us if you need any further assistance. 
 
Regards, 
Vengatesh  
 


Loader.
Up arrow icon