Skip to content

VS Code Setup Considerations

Overview

Bacuase still-cli is a Vanilla JavaScript Framework that leverages ES module capabilities, when auto-importing one file into another it's required the .js to be in place (see examples bellow), however the editor (e.g. VS Code) won't do that automatically, hence we need a basic setup.

//This is correct importing
 import { module } from "MyModule.js";

//This is wrong importing, will result on net::ERR_ABORTED 404 (Not Found)
 import { module } from "MyModule";


Configure VSCode to add .js when auto-import

Still CLI tool is provided through the NPM (Node Package Manager), and it has to be installed globally and not in a project scope: