TreeTable Webpack Error

UI Components for Vue
Post Reply
Posts: 1
Joined: 29 Jul 2020, 04:44

29 Jul 2020, 06:33


I'm trying to register the primevue/treetable component but keep running into a webpack error when trying to load the initial page.
From browser console:
Uncaught TypeError: vue__WEBPACK_IMPORTED_MODULE_4__.default.Component is not a function
Here is the code for registering in main.js:

Code: Select all

import TreeTable from 'primevue/treetable'
Vue.Component('TreeTable', TreeTable)
I've tried this with brand new projects on different windows machines and I still get this same error. This error also occurs on the "Tree" component as well. All other primevue components register just fine.

Using latest version of primevue 2.0.5, vue 2.6.11


Posts: 18331
Joined: 05 Jan 2009, 00:21
Location: Cybertron

04 Aug 2020, 15:04

Could you please try removing your node_modules and do a fresh install.

Post Reply

Return to “PrimeVue”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest