Closed Shivang-Bhandari closed 5 years ago
Installed fuse in one of my projects using yarn and it throws an error in tests built using Jest
yarn
Jest
import Fuse from "fuse.js"; const Fuse = _fuse.current = new Fuse(options, fuseOptions);
TypeError: _fuse.default is not a constructor
doing an npm install works and fixes this issue.
npm install
deleting the yarn.lock and node_modules files and doing yarn install again fixed this.
yarn.lock
node_modules
yarn install
Installed fuse in one of my projects using
yarn
and it throws an error in tests built usingJest
Usage
Error:
TypeError: _fuse.default is not a constructor
doing an
npm install
works and fixes this issue.