Names and autocomplete from a third-party SDK are gone

69 Views Asked by At

Previously working SDK environment stops recognize the names and provide autocomplete. I want to know, what caused the problem and does it connected to SDK maintenance or maybe it goes offline?

This is a Decentraland SDK: https://docs.decentraland.org/getting-started/installation-guide/

Already reinstalled CLI, Node.js, Git bash and Visual Code.

The projects are building from command line as previously fine, but Visual Code stops to recognize SDK is installed and unrecognized specific names, instead marks them as an errors. Not a big deal, but I've lost autocomplete and receive warnings.

2

There are 2 best solutions below

0
On

The problem occurred when opening a projects folder which does't contain 'node_modules' sub-folder. Include that dir on your opened folder or even sub-folder, to prevent above problem.

0
On

To get node_modules installed in a scene directory: 1. Open the cmd prompt or terminal 2. Use cd to navigate to the scene directory 3. Run:. npm i decentraland-ecs 4. Close and reopen Visual Studio Code