Importing WaveFile like so: import WaveFile from "wavefile" and attempting to create an instance like: const reader = new WaveFile() results in the following error: TypeError: wavefile_1.default is not a constructor.
However, importing like: const wavefile = require("wavefile") works fine, but then TypeScript type checking stops working.
Importing WaveFile like so:
import WaveFile from "wavefile"
and attempting to create an instance like:const reader = new WaveFile()
results in the following error:TypeError: wavefile_1.default is not a constructor
.However, importing like:
const wavefile = require("wavefile")
works fine, but then TypeScript type checking stops working.