You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My project is based on vite 6.2.0.
Today I npm intalled browser-image-compression then I try to use it.
But it occured an error: [vite] Internal server error: Failed to resolve import "cordova/modulemapper" from "node_modules/.vite/deps/browser-image-compression.js?v=17e0ba09". Does the file exist?
I checked the source code and find this line s = o && window.cordova && window.cordova.require && window.cordova.require("cordova/modulemapper"),
It seems doesn't compatible with vite.
How could I fixed this