#1353·matter-js

[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:

javascript
npm info matter-js types //nothing

Fix:

javascript
npm install -D @types/matter-js

I 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

typescript
//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;