[FIX] No Types/Suggestions Showing on VSCode/VSCodium
Author: rayyanekaputraCreated Apr 13, 2026Updated Apr 13, 2026
The problem esteemed from my vscodium not showing any suggestions. Started poking around node_modules folder and found this library doesn't have any type file to expose all style of imports.
Proof:
npm info matter-js types //nothingFix:
npm install -D @types/matter-jsI was thinking that we can contribute and use ESM on this, following modern libraries node environment. The following file should be added in the future
//index.d.ts
import * as Matter from "./src/main.js"; //main.js also import all available modules.
export * from "./src/main.js";
export { Matter };
export default Matter;Source: liabru/matter-js