mdi.js uses the ESM export style, but has a .js file extension instead of .mjs, which prevents node from understanding the file type. mdi.js should be mdi.mjs, and a new mdi.js file should be included that uses the CJS style. This appears to exist in the git repo, but isn't actually distributed for some reason.
mdi.js uses the ESM export style, but has a .js file extension instead of .mjs, which prevents node from understanding the file type. mdi.js should be mdi.mjs, and a new mdi.js file should be included that uses the CJS style. This appears to exist in the git repo, but isn't actually distributed for some reason.