DBozhinovski / relatinator

A humble library for finding related posts and content. Uses tf-idf under the hood. Primarily aimed at static site generators.
MIT License
6 stars 0 forks source link

Please support Astro 4 #1

Open colinrobinsonuib opened 6 months ago

colinrobinsonuib commented 6 months ago

Thank you

DBozhinovski commented 6 months ago

Hey @colinrobinsonuib ! It should be supported, I believe. Are there any specific Astro 4 issues you've experienced with the package?

colinrobinsonuib commented 6 months ago

Hi,

1) It can't be installed because of the dependency "astro": "^3.6.4" so if you could bump the major version number, that would be good.

2) Even if I force the install by doing

"overrides": {
    "relatinator": {
      "astro": "$astro"
    }
  }

I get the error on build:

[vite] Error when evaluating SSR module C:\project\astro.config.mjs: failed to import "/node_modules/astro-relatinator/integration.ts" |- Error: Failed to resolve entry for package "relatinator". The package may have incorrect main/module/exports specified in its package.json.

DBozhinovski commented 6 months ago

@colinrobinsonuib Should be good now, latest in master (fixed by https://github.com/DBozhinovski/relatinator/commit/e37fc37edae5324f21cf886ef6fa2e62ddbcbca9)

DBozhinovski commented 6 months ago

Also published to NPM now, make sure to install @latest