So I want to import a js module in my ts app.
I am currently just ignoring this error with //@ts-ignore.
There are two cases here:
- You are using ESM modules, and only have
const module = (await import('module')) as any;
- You aren’t using ESM modules, therefore you have access to
const module = require('module') as any;