Closed hominsu closed 2 years ago
Thanks for opening this issue, maintainers will get back to you as soon as possible!
Modified the file and integrity, everything is fine
algolia_search:
name: algoliasearch
version: 4.13.1
- file: dist/algoliasearch-lite.umd.js
- integrity: sha256-g68T2rU86flpyzVWWCcZxWGWISTfOXVwEpZgyKOaZ1c=
+ file: dist/algoliasearchLite.js
+ integrity: sha256-Lo1hgzpep12pGfO8ze7kq63+xtFp5zNuoEjQbclVP6I=
instant_search:
name: instantsearch.js
version: 4.43.0
I submitted a Pull Request #544, algoliasearch is now available on my site: www.hauhau.cn
We may need unit tests to make sure it works.
We may need unit tests to make sure it works.
You mean add a test suite to check if file in _vendor.yml
exist?
The current management of dependency package versions relies on manual review, e.g. https://github.com/next-theme/plugins/pull/166 Maybe we need to find a more automated way
The current management of dependency package versions relies on manual review, e.g. next-theme/plugins#166 Maybe we need to find a more automated way
Got it. In hexo-algolia
, it use an older algoliasearch
, so it caused this error. but in hexo-algoliasearch
it use latest version, so it works. May be using some automated method to provide internal scripts locally is better.
Thanks so much
This thread has been automatically locked since there has not been any recent activity after it was closed. It is possible issue was solved or at least outdated. Feel free to open new for related bugs.
Issue Checklist
While I'm using
local vendor
andalgolia_search
at the same time, some errors occur (I'm used git to install the next theme and use"@next-theme/plugins": "^8.12.2"
to provide internal script locally)As you can see,
@next-theme/plugins
are not found thealgoliasearch/dist/algoliasearch-lite.umd.js
Search function is not available on the website
I check the
algoliasearch/dist
innode_modules
, you can see the the script is namedalgoliasearchLite.js
notalgoliasearch-lite.umd.js
Author's description on https://www.npmjs.com/package/hexo-algolia also indicates the
algoliasearchLite.min.js
is used to include Algolia JavaScript ClientEnvironment Information
I'm using
node v16.14.0
andnpm@8.13.2
Package dependencies Information