Goldziher / axios-simple-cache-adapter

Configurable axios cache adapter for node and the browser
https://www.npmjs.com/package/axios-simple-cache-adapter
MIT License
11 stars 5 forks source link

Problem in vite environment with esbuild #25

Open ghost23 opened 1 month ago

ghost23 commented 1 month ago

Hi,

I wanted to try your library, but I get an error from vite saying:

[ERROR] Failed to resolve entry for package "axios-simple-cache-adapter". The package may have incorrect main/module/exports specified in its package.json. [plugin vite:dep-scan]

Then I looked a little and found this:

image

This does not seem to match.

Goldziher commented 1 month ago

Indeed! Would you like to submit a fix?