file-system-cache
file-system-cache copied to clipboard
No "exports" main defined when upgrading to v3.0.0
Hello!
First and foremost, thank you for the awesome library - we've been using it for a few weeks now and are very impressed with the results. We attempted to upgrade to the latest 3.0.0 version today however, and we're now getting:
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in /Users/conorfu/....../node_modules/file-system-cache/package.json [Storefront Client] at new NodeError (node:internal/errors:405:5) [Storefront Client] at exportsNotFound (node:internal/modules/esm/resolve:259:10) [Storefront Client] at packageExportsResolve (node:internal/modules/esm/resolve:533:13)
This is a Node 20/Next 14 based application and we are using a commonjs environment and am unable to switch easily to use ESM. Is it possible to add default exports to the package.json for increased module support? As has been done here for next/auth
https://github.com/nextauthjs/next-auth/pull/11224/commits/b1a81024071e688cb4168c81047ac97febb91691