Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Modules not loading. #8592

Closed
3 tasks done
cpt-n3mo opened this issue Oct 6, 2021 · 7 comments
Closed
3 tasks done

Custom Modules not loading. #8592

cpt-n3mo opened this issue Oct 6, 2021 · 7 comments

Comments

@cpt-n3mo
Copy link

cpt-n3mo commented Oct 6, 2021

Preflight Checklist

Describe the Bug

Custom Modules not showing up in web interface

To Reproduce

When create a new directus v9 project, with MariaDB.
and then using directus-extension create module mymodule
generates a template,
building this template with directus-extension build then moving contant of the dist folder index.js to './extensions/modules/testModule/index.js'

then when refreshing directus module is not showing up in the web interface

What version of Directus are you using?

directus "^9.0.0-rc.95"

What version of Node.js are you using?

v13.14.0

What database are you using?

MariaDB docker

What browser are you using?

Firefox / chromium

What operating system are you using?

Arch Linux 5.13.6-zen1-1-zen

How are you deploying Directus?

locally

@benhaynes
Copy link
Sponsor Member

Did you go into the app's project settings and enable it?

@cpt-n3mo
Copy link
Author

cpt-n3mo commented Oct 6, 2021

oh! feeling abit like a noob..!
that was it!
the docs are not mentioning anything about this though in the custom module section.. is there a way to add to the docs maybe..?
like directus-extension tool is not very well documented, as in the create | build + --watch etc maybe how to setup a dev env for module development.. using build --watch -o "to store index.js " would love to contrib and add some more information to the docs if it were possible..

once again thx for the quick response!

@benhaynes
Copy link
Sponsor Member

No problem, we're in the process of overhauling the docs, and this will be included. This is also a new feature as of last week... so it's understandable that it might be missed.

@benhaynes
Copy link
Sponsor Member

CC @alesvaupotic

@cpt-n3mo
Copy link
Author

cpt-n3mo commented Oct 6, 2021

No problem, we're in the process of overhauling the docs, and this will be included. This is also a new feature as of last week... so it's understandable that it might be missed.

ah yeh that makes allot of sense then.. :)
one more small question though.. is there a way to set directus in watch mode. so it can detect changes in extension folder, as now it seems i need to restart directus. before it sees the changes

kind regards.

@benhaynes
Copy link
Sponsor Member

That question is beyond my skillset!

@rijkvanzanten
Copy link
Member

@cpt-n3mo There's a couple discussions around the subject (for example #8386). There's no out-of-the-box setup for this yet at this point

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants