[Bug]: Form module not serving
Michael-Vol opened this issue · comments
Checklist
- I agree to follow the Code of Conduct that this project adheres to.
- I have searched the Issue Tracker for a bug that matches the one I want to file, without success.
- This issue is not related to the Conduit Admin Panel user interface.
Conduit version
0.14.0-0
Describe the Bug
The Form module does not appear in the active modules and fails to activate itself due to the user router not being initialised and therefore the form controller and the admin router not being instantiated. This happens after the removal of the "on" function which introduced callbacks (#220). The waitForExistence module method does not wait for the user router after it has been initialised resulting in the controller not working due to its dependency from the router.
Expected Behavior
The waitForExistence method should resolve when the routing module is up before other modules in order to initialise the user router for the forms module.
How to Reproduce
- Spin up the Core,Database,Router and Email modules
- Wait until all of them have finished initialising
- Run the Forms module
- Notice that the forms module fails to activate (TypeError: Cannot read properties of undefined (reading '_routingManager')
Additional Information
No response
Environment
No response