jspdf-autoTable Library does not work in deployment

I have a problem importing the jspdf-autoTable library, when working from localhost it works correctly but when uploading the page it tells me that autoTable is not a function.
My site name is: presupuesto-electricidad-domiciliaria.netlify.app

i resolv it whith this implementation:

import jsPDF from '../../node_modules/jspdf/dist/jspdf.umd.min.js'
import { applyPlugin } from 'jspdf-autotable'
applyPlugin(jsPDF)