dulnan / nuxt-multi-cache

Advanced caching of components, routes and data for Nuxt 3. Dynamically define CDN cache control headers. Provides cache management API for purging items by key or using cache tags.
https://nuxt-multi-cache.dulnan.net
MIT License
177 stars 15 forks source link

Broken Typescript exports #43

Open hoersamu opened 1 month ago

hoersamu commented 1 month ago

When trying to import types from either the package directly or from /dist/runtime/serverOptions i get the following typeerror:

Could not find a declaration file for module 'nuxt-multi-cache'. 'xxx/node_modules/nuxt-multi-cache/dist/module.mjs' implicitly has an 'any' type.
  There are types at '/xxx/node_modules/nuxt-multi-cache/dist/types.d.ts', but this result could not be resolved when respecting package.json "exports". The 'nuxt-multi-cache' library may need to update its package.json or typings.ts(7016)

I will try to provide a minimal reproduction later today

haidertm commented 2 weeks ago

when can this be released?

the latest version 3.1.1, does not have this fix.