Error Loading Module './manage' in NodeBB Theme – Need Help Debugging
-
I’m encountering an error when trying to load manage.js in my NodeBB theme. The error message says:
error loading forum/manage
Error: Cannot find module ‘./manage’
Directory Structure & Code:
nodebb-theme-mine
├── client
│ └── manage.js
├── plugin.json
└── templates
└── manage.tplCode Snippets:
- client/manage.js
define(‘forum/community-manage’, [‘bootbox’], function (bootbox) {
// …
}); - plugin.json(partial):
“modules”: {
“…/admin/plugins/harmony.js”: “public/admin.js”,
“…/client/account/theme.js”: “public/settings.js”,
“forum/community-manage”: “client/manage.js”
}
What I’ve Tried:
• Verified the file client/manage.js exists.
• Checked plugin.json syntax and module mappings.
Questions:
• Why is NodeBB unable to resolve ./manage when the module is defined in plugin.json?
• Could this be a path resolution issue or a problem with the AMD module syntax (define)?
Any help or pointers would be greatly appreciated!
- client/manage.js
-
T Technical Support shared this topic on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Tilmeld Log ind