Open khush3031 opened 1 year ago
@khush3031 Thanks for posting! We'll take a look as soon as possible.
In the mean time, there are a few ways you can help speed things along:
Please remember: never post in a public forum if you believe you've found a genuine security vulnerability. Instead, disclose it responsibly.
For help with questions about Sails, click here.
Hey @khush3031. Do you mean config/globals.js
? This is where the sails: true
should be set.
// config/globals.js
module.exports.globals = {
/****************************************************************************
* *
* Whether to expose the Sails app instance as a global variable (`sails`), *
* making it accessible throughout your app. *
* *
****************************************************************************/
sails: true,
}
Let me know if this helps.
I am not bale to access sails event after ( "sails" : true ) defined in config/global.js file "RefernceError: sails is not define"
Node version: 16.15.1 Sails version (sails): 1.5.7 ORM hook version (sails-hook-orm): 2.1.1 Sockets hook version (sails-hook-sockets): 1.5.5 Organics hook version (sails-hook-organics): - Grunt hook version (sails-hook-grunt): 3.1.1 Uploads hook version (sails-hook-uploads): - DB adapter & version (e.g. sails-mysql@5.55.5): 3.0.1 Skipper adapter & version (e.g. skipper-s3@5.55.5): -