Sails.js intellisense in webstorm

Is there intellisense for Webstorm available for the Sails.js application? In all my controllers, I get a message saying that the model is undefined, although it works fine. The same applies to call services.

+4
source share
2 answers

This structure is currently not supported - vote for http://youtrack.jetbrains.com/issue/WEB-11025 . And WebStorm does not support a way to load modules and therefore cannot provide intellisense

+2
source

, , , , "modules.exports" (, ).

, UserController.js, :

var UserController = module.exports = {}

api sails . javascript libraries settings page

  • "" → → Javascript- >
  • "+"
  • sails api ( )
  • ""

, api .

, , "Node.js Globals", "node_modules" . node.js (, ejs ..).

, !

+3

Source: https://habr.com/ru/post/1531749/


All Articles