Hi.
I don't have a MySQL DB to add to my Wappler project, but I provide a function where user may add DB credentials in the app - to connect to their PgSQL or MySQL DB.
For this, I have a custom extension, which has defined mysql2
package in "usedModules".
And also in the config/modules.js file, I can see mysql2 mentioned as dependency.
But, every time I switch to the project, or restart Wappler, this package gets removed from package.json.
I found this post - Node package gets deleted from package.json on wappler restart - which implies that a potential solution is to create a MySQL DB connection in Globals. But, since I don't have a MySQL DB to connect to, it does not apply, and the solution is weird to begin with.
Not sure if this is a bug, so have kept it under need help
. Please help.