New install not associating objects with methods
I changed laptops to a newer Mac and when I cloned my repo It has a lot of red underlines under native methods to the Adonisjs framework.
const clients = await Client.query();
const clientContacts = await ClientContact.query()
const clientContacts = await ClientContact.query()

Version of Webstorm is Build #WS-231.8109.174, built on March 28, 2023
Previous veriosn on the older Mac is Build #WS-223.7571.168, built on November 28, 2022
Is there something I need to do to associate these to get rid of the red errors?
请先登录再写评论。
please could you share the complete code snippets (with imports, etc.)? What library version do you use?
Heres a Controller
And the model
these are .ts files
I was running my node_modules in the container but linked the typescript setting in my local node_modules, which were empty. Reconfigured a few things and it works now.
All your imports are marked unresolved, thus the issue. Having
node_modulesinstalled in Docker container is not currently supported; please follow https://youtrack.jetbrains.com/issue/WEB-55591/Remote-Docker-nodemodules-not-detected and linked tickets for updatesI can only suggest installing
node_moduleslocally using a remote interpreter