Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[@astrojs/image] Cannot find package 'http-cache-semantics' #4938

Closed
1 task
fflaten opened this issue Sep 30, 2022 · 1 comment
Closed
1 task

[@astrojs/image] Cannot find package 'http-cache-semantics' #4938

fflaten opened this issue Sep 30, 2022 · 1 comment

Comments

@fflaten
Copy link
Contributor

fflaten commented Sep 30, 2022

What version of astro are you using?

1.4.1

Are you using an SSR adapter? If so, which one?

None

What package manager are you using?

npm

What operating system are you using?

Linux

Describe the Bug

After upgrading @astrojs/image to 0.9.0 I receive the following error:

08:36:21 PM [astro] Unable to load /workspaces/Website/astro.config.mjs

 error   Cannot find package 'http-cache-semantics' imported from /workspaces/Website/node_modules/@astrojs/image/dist/build/ssg.js
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'http-cache-semantics' imported from /workspaces/Website/node_modules/@astrojs/image/dist/build/ssg.js
    at new NodeError (node:internal/errors:387:5)
    at packageResolve (node:internal/modules/esm/resolve:951:9)
    at moduleResolve (node:internal/modules/esm/resolve:1000:20)
    at defaultResolve (node:internal/modules/esm/resolve:1214:11)
    at nextResolve (node:internal/modules/esm/loader:165:28)
    at ESMLoader.resolve (node:internal/modules/esm/loader:844:30)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:431:18)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:76:40)
    at link (node:internal/modules/esm/module_job:75:36)

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-o2qvrv

Participation

  • I am willing to submit a pull request for this issue.
@fflaten fflaten changed the title ERR_MODULE_NOT_FOUND using astrojs/image 0.9.0 [@astrojs/image] Cannot find package 'http-cache-semantics' Sep 30, 2022
@delucis
Copy link
Member

delucis commented Oct 1, 2022

Fixed by #4944

Not released yet but coming soon!

@delucis delucis closed this as completed Oct 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants