Page 1 of 1

TreeTable Webpack Error

Posted: 29 Jul 2020, 06:33
by MaxPower405
Hello,

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

Thanks!

Re: TreeTable Webpack Error

Posted: 04 Aug 2020, 15:04
by cagatay.civici
Could you please try removing your node_modules and do a fresh install.