Error in nextTick: "TypeError: this.$slots.default is not a function

Since the update i keep getting this error:

Error in nextTick: "TypeError: this.$slots.default is not a function"

Any ideas what is going wrong here?

I've tried upgrading but that still gives me error's

"@syncfusion/ej2-base": "^19.4.52",
"@syncfusion/ej2-vue-navigations": "^19.4.52",
"@syncfusion/ej2-vue-schedule": "^19.4.55",

3 Replies

RV Ravikumar Venkatesan Syncfusion Team July 15, 2022 02:57 PM UTC

Hi Frank,


Greetings from Syncfusion support.


We have validated your reported query “Error in nextTick: "TypeError: this.$slots.default is not a function” at our end. We suspect that the root cause of the problem is due to the duplicate packages in the node_modules. We have prepared a working sample for your reference.


Kindly follow the below steps to remove the duplicate packages and cache.

  1. Remove the cap (^) symbol before the version number and use the mentioned symbol (~) before the version number like ("@syncfusion/ej2-vue-schedule": "~19.4.55").
  2. Delete the @Syncfusion folder from node_modules and the package-lock.json file from the root folder.
  3. Clear npm cache at your end.
  4. Run the "npm install —legacy-peer-deps" command to install the packages.


Kindly try the shared sample and let us know if you need any further assistance.


Output:


Regards,

Ravikumar Venkatesan


Attachment: ej2vue2schedule19.4.55sample_d6a0f5ca.zip


JG Jhon García August 10, 2022 01:56 PM UTC

Hello, I am presenting the same error. I followed the instructions that indicate but the error persists. Still no solution?

Error2.png




RV Ravikumar Venkatesan Syncfusion Team August 12, 2022 06:35 AM UTC

Hi Jhon,


Greetings from Syncfusion support.


We have validated your reported query “I am presenting the same error. I followed the instructions that indicate but the error persists. Still no solution?” at our end. We suggest you check the vue and vue-template-compiler versions in your package.json file. If the vue and vue-template-compiler version is mentioned as “^2.6.14" instead of "~2.6.14" inside the dependencies in the package.json file we suggest you use the tilde symbol in the vue and vue-template compiler version as "~2.6.14". We have attached a working sample for your reference.


Kindly let us know if you need any further assistance on this.


Regards,

Ravikumar Venkatesan

If this post is helpful, kindly consider accepting it as the solution so that other members can locate it more quickly.


Attachment: ej2vue2schedulesample19.4_49719cd9.zip

Loader.
Up arrow icon