str.match is not a function

ERROR TypeError: str.match is not a function

    at evalExp (ej2-base.es2015.js:4268)

    at compile$1 (ej2-base.es2015.js:4227)

    at Object.compile (ej2-base.es2015.js:4532)

    at compile$$1 (ej2-base.es2015.js:4429)

    at QueryBuilderComponent.templateParser (ej2-querybuilder.es2015.js:3045)

    at QueryBuilderComponent.appendRuleElem (ej2-querybuilder.es2015.js:487)

    at QueryBuilderComponent.addRuleSuccessCallBack (ej2-querybuilder.es2015.js:547)

    at QueryBuilderComponent.<anonymous> (ej2-querybuilder.es2015.js:525)

    at QueryBuilderComponent.push../node_modules/@syncfusion/ej2-angular-base/src/component-base.js.ComponentBase.trigger (component-base.js:318)

    at QueryBuilderComponent.addRuleElement (ej2-querybuilder.es2015.js:524


1 Reply

AS Aravinthan Seetharaman Syncfusion Team October 4, 2021 09:12 AM UTC

 
Thanks for contacting Syncfusion Support. 
 
We have checked your query. We cannot able to reproduce your reported issue in our end. For your reference we have prepared sample here. 
 
 
However, we suspect that some duplicate packages might be installed in your ‘@syncfusion’ folder of ‘node_modules’. Please follow the steps provided in the following the below steps to overcome the reported behavior.   
  
1.       Delete package.lock.json file from your application.  
2.       Remove the @syncfusion  package folder from the node_modules.  
3.       Use same version for all components in package.json file.  
4.       Then install the new packages.  
   
 
Please check the above details and if you are still facing issue, please share the below details. 
 
  • If possible, please reproduce the issue in provided sample or share the issue reproducible sample.
  • Please share us your package.json and Querybuilder related code snippet.
  • Please share us the video demonstration of this issue.
  • Please share us Syncfusion package version.
  • Please ensure whether you have properly mentioned required providers in app.module.ts
 
Please provide the above requested information, based on that we will check and provide you a better solution quickly. 
 
Regards, 
Aravinthan S 


Loader.
Up arrow icon