Closed charliematters closed 1 year ago
Thanks for reporting this. I hoped that exposing the module export would be enough. Will look into this in the next days.
Thanks for this. I agree, it looks like the package.json has the right stuff, but getting help from Astro didn't seem very fast
I know that feel. Will see what I can do
Hey @charliematters I've never worked with astro and by "installing the default astro project" (I did npm create astro@latest
) I don't see where I would want to use cachified. Could you provide me a repo where I could see what you're trying to do or more detailed steps what I need to do to reproduce the issue?
Nevermind... the issue seems to not be astro related but you can not load cachified in any "type": "module"
project 😭
Could you check if the issue persists with v3.0.2
?
That works great - thanks!
thanks for making me aware of this 👍
I'd like to use cachified in an Astro app, which I believe has its own compiler. It works fine when running it in dev mode, but when you try to build and run it, there is an import error. I can resolve that by adding
"type": "module"
to the cachified package.json. From my experience of getting CJS and ESM to work together, I know that it gets very complicated very quickly, but I'm not sure where else to raise this.The error is:
You can reproduce this by installing the default astro project, and then import and use cachified