Syntax Error in @dgmjs/pdf
When importing functions from the @dgmjs/pdf package, I get this error from my NextJS framework:

SyntaxError: Named export 'makeAbsolute' not found. The requested module 'svg-path-parser' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:

import pkg from 'svg-path-parser';
const { parseSVG, makeAbsolute } = pkg;

/node_modules/@dgmjs/pdf/dist/index.js