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()
 
 
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? 
 
0

please could you share the complete code snippets (with imports, etc.)? What library version do you use?

0

Heres a Controller 

And the model

these are .ts files 

 

0

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. 

1

All your imports are marked unresolved, thus the issue. Having node_modules installed 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 updates
I can only suggest installing node_modules locally using a remote interpreter

0

请先登录再写评论。