Closed SvizelPritula closed 3 years ago
When using commonjs syntax with require, Visual Studio Code doesn't load type declarations, since they correspond to the ESM distribution.
6.4.3
No, it never worked to my knowladge
npm init
const Fuse = require('fuse.js');
new Fuse()
None
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days
Describe the bug
When using commonjs syntax with require, Visual Studio Code doesn't load type declarations, since they correspond to the ESM distribution.
Version
6.4.3
Is this a regression?
No, it never worked to my knowladge
🔬Minimal Reproduction
npm init
const Fuse = require('fuse.js');
into main.jsnew Fuse()
parameters.Additional context
None