Hi guys,
I may have skipped some major version, but I didn't find anything related to this problem:
essentially I took my database, took my nodebb instance (v1.4.6), moved it on my personal laptop and tried to update it.
I manage to update it without problems, everything looks nice, except some plugins may not have been updated (don't really care).
Now I can run it, the forum works, the admin page works and my custom made plugin is loaded, BUT nodebb cannot find my custom made templates. The error is:
Error: ENOENT: no such file or directory, open 'path/to/NodeBB/build/public/templates/recent2.tpl'
at Error (native)
My plugin.json is the same as the old one:
{
"id": "nodebb-plugin-myplugin",
"name": "Myplugin",
"description": "Myplugin",
"url": "path/to/myplugin",
"library": "./library.js",
"hooks": [
{
"hook": "static:app.load", "method": "init"
},
{
"hook": "filter:config.get", "method": "appendConfig"
},
{
"hook": "filter:admin.header.build", "method": "addAdminNavigation"
},
{
"hook": "filter:topics.get", "method": "getTopics"
},
{
"hook": "filter:topic.thread_tools", "method": "addThreadTool"
},
{
"hook": "filter:navigation.available", "method": "addNavigation"
},
{
"hook": "filter:plugin.write-api.routes", "method": "api"
}
],
"staticDirs": {
"static": "./static"
},
"less": [
"static/style.less"
],
"scripts": [
"static/lib/main.js",
"static/jquery.datatables.js",
"static/datatables.bootstrap.js"
],
"templates": "static/templates"
}
Did I miss some breaking change, or it's something else?
Thanks,
L