Skip to content
  • Hjem
  • Seneste
  • Etiketter
  • Populære
  • Verden
  • Bruger
  • Grupper
Temaer
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Kollaps
FARVEL BIG TECH
  1. Forside
  2. Technical Support
  3. Error Loading Module './manage' in NodeBB Theme – Need Help Debugging

Error Loading Module './manage' in NodeBB Theme – Need Help Debugging

Planlagt Fastgjort Låst Flyttet Technical Support
1 Indlæg 1 Posters 25 Visninger
  • Ældste til nyeste
  • Nyeste til ældste
  • Most Votes
Svar
  • Svar som emne
Login for at svare
Denne tråd er blevet slettet. Kun brugere med emne behandlings privilegier kan se den.
  • F This user is from outside of this forum
    F This user is from outside of this forum
    fate@community.nodebb.org
    wrote on sidst redigeret af
    #1

    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.tpl

    Code Snippets:

    1. client/manage.js
      define(‘forum/community-manage’, [‘bootbox’], function (bootbox) {
      // …
      });
    2. 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!
    1 Reply Last reply
    1
    0
    • System shared this topic on
    Svar
    • Svar som emne
    Login for at svare
    • Ældste til nyeste
    • Nyeste til ældste
    • Most Votes


    • Log ind

    • Har du ikke en konto? Tilmeld

    • Login or register to search.
    Powered by NodeBB Contributors
    Graciously hosted by data.coop
    • First post
      Last post
    0
    • Hjem
    • Seneste
    • Etiketter
    • Populære
    • Verden
    • Bruger
    • Grupper