Seeing the above error when trying to render any angualr control inside and ng-template as e-pane content. Even the samples do not work. Any help would be appreciated.Have not had issues rendering other controls.CheersMarkCode and markup is as in the linl splitter example codeErrorERROR TypeError: str.match is not a functionat evalExp (vendor.js:171639)at compile (vendor.js:171626)at Object.push../node_modules/@syncfusion/ej2-angular-layouts/node_modules/@syncfusion/ej2-base/src/template-engine.js.Engine.compile (vendor.js:171555)at compile (vendor.js:171514)at SplitterComponent.push../node_modules/@syncfusion/ej2-angular-layouts/node_modules/@syncfusion/ej2-layouts/src/splitter/splitter.js.Splitter.compileElement (vendor.js:176448)at SplitterComponent.push../node_modules/@syncfusion/ej2-angular-layouts/node_modules/@syncfusion/ej2-layouts/src/splitter/splitter.js.Splitter.templateCompile (vendor.js:176432)at SplitterComponent.push../node_modules/@syncfusion/ej2-angular-layouts/node_modules/@syncfusion/ej2-layouts/src/splitter/splitter.js.Splitter.setTemplate (vendor.js:176427)at SplitterComponent.push../node_modules/@syncfusion/ej2-angular-layouts/node_modules/@syncfusion/ej2-layouts/src/splitter/splitter.js.Splitter.createSplitPane (vendor.js:176489)at SplitterComponent.push../node_modules/@syncfusion/ej2-angular-layouts/node_modules/@syncfusion/ej2-layouts/src/splitter/splitter.js.Splitter.render (vendor.js:175362)at SplitterComponent.push../node_modules/@syncfusion/ej2-angular-layouts/node_modules/@syncfusion/ej2-base/src/component.js.Component.appendTo (vendor.js:166124)
"@syncfusion/ej2-angular-barcode-generator": "^17.2.34",
"@syncfusion/ej2-angular-buttons": "^17.2.35",
"@syncfusion/ej2-angular-calendars": "^17.2.36",
"@syncfusion/ej2-angular-charts": "^17.2.36",
"@syncfusion/ej2-angular-dropdowns": "^17.2.36",
"@syncfusion/ej2-angular-grids": "^17.2.40",
"@syncfusion/ej2-angular-inputs": "^17.2.39",
"@syncfusion/ej2-angular-navigations": "^17.2.39",
"@syncfusion/ej2-angular-popups": "^17.2.35",
"@syncfusion/ej2-angular-splitbuttons": "^17.2.39",
"@syncfusion/ej2-grids": "^17.2.40",
"@syncfusion/ej2-layouts": "^17.2.39",
"@syncfusion/ej2-navigations": "^17.2.40",
Hi Jose,Good day to you.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.Could you please follow the above step and get back to us with package.lock.json file if you still facing the same problem?Regards,Vinoth Kumar S
Package.json
"dependencies": {
"@syncfusion/ej2-angular-grids": "*",
"@syncfusion/ej2-base": "*",
"@syncfusion/ej2-data": "*",
. . . . . . . .
. . . . . . . .
}
|
Rebuilding package.json and synchronising control versions worked for me:
https://www.syncfusion.com/forums/144809/str-match-is-not-a-function?reply=NtIG1A
Thanks!
Hi team
I am unable to Load Dashlet in the Dashboards
it is showing has
TypeError: str.match is not a function
at evalExp (ej2-base.es2015.js:8808:25)
at compile$1 (ej2-base.es2015.js:8760:27)
at Object.compile (ej2-base.es2015.js:9137:16)
at compile$$1 (ej2-base.es2015.js:9014:32)
at DashboardLayoutComponent.templateParser (ej2-layouts.es2015.js:2572:31)
at DashboardLayoutComponent.renderTemplate (ej2-layouts.es2015.js:2579:33)
at DashboardLayoutComponent.renderPanels (ej2-layouts.es2015.js:2640:22)
at DashboardLayoutComponent.renderCell (ej2-layouts.es2015.js:3245:36)
at DashboardLayoutComponent.renderDashBoardCells (ej2-layouts.es2015.js:3328:35)
at DashboardLayoutComponent.initialize (ej2-layouts.es2015.js:2481:18)
Hi Gautam,
It has come to our attention that there may be redundant packages in the '@syncfusion' directory within your node_modules. To rectify the issue, kindly follow the steps outlined below:
1. Delete the 'package-lock.json' file from your application.
2. Remove the '@syncfusion' package directory from 'node_modules'.
3. Ensure all components in the 'package.json' file are of the same version.
4. Proceed to install the packages anew.
For detailed instructions, please refer to the User Guide (UG) at the following link:
https://ej2.syncfusion.com/angular/documentation/common/how-to/update-npm-package
After completing these steps, if the issue persists, please reach out to us with the 'package-lock.json' file and a sample that replicates the issue for further assistance.
For your reference, this issue has previously been discussed in the forums linked below:
https://www.syncfusion.com/forums/152309/str-match-is-not-a-function
https://www.syncfusion.com/forums/181932/str-match-is-not-a-function
Regards,
Muthukrishnan K