Error when loading external package

Despite having successfully installed the package @freesewing/svg2pdf in the npm section (no icons on incompatibility), I get the following error in the backend:

Screenshot 2026-01-07 at 15.12.14

I tried several way to import it:
//import { svg2pdf } from ‘@freesewing/svg2pdf’;
const svg2pdf = require(‘@freesewing/svg2pdf’);

What am I doing wrong??