Why when i install plugin nodebb-plugin-dbsearch on nodebb v0.5.5 error
-
I using version 0.0.16 but this not working and error: TypeError: Cannot read property 'applyCSRF' of undefined in file nodebb-plugin-dbsearch/index.js at line
params.router.get('/admin/plugins/dbsearch', params.middleware.applyCSRF, params.middleware.admin.buildHeader, renderAdmin); -
@Le-Binh I don't think you are running 0.0.16 as
params.middleware.admin.buildHeader, renderAdmin);
is nodebb 0.6.0 specific and is in 0.1.0 of the dbsearch plugin only.Try uninstalling the dbsearch plugin first, then make sure you run the above command as is. You may need to reenable the plugin and restart nodebb.
-
-
@Shaun said:
@julian said:
npm i [email protected]
Actually, try:
npm i [email protected]
Thanks all, it worked
Copyright © 2024 NodeBB | Contributors