orama
orama copied to clipboard
Circular dependency warning in rollup
Describe the bug I'm getting a circular dependency warning when importing lyra and stemmer:
rollup v2.79.1
bundles src/dtm.js, src/worker-search → dist...
(!) Circular dependency
node_modules/@lyrasearch/lyra/dist/esm/src/lyra.js -> node_modules/@lyrasearch/lyra/dist/esm/src/tokenizer/index.js -> node_modules/@lyrasearch/lyra/dist/esm/src/lyra.js
created dist in 1.1s
To Reproduce
- Use rollup
- Import esm stuff as described in Lyra documentation for stemmers
Expected behavior No circular dependencies
Node: 16.17.1 NPM: 8.15.0 Ubuntu 22.04 LTS
I could not reproduce the bug. @phun-ky Do you have a code snippet which I can use for reproduction?
Is this still a problem? We changed the way we compile Lyra, so this might be solved
Need to bump and check!Â
with 0.4.9
I now get:
(!) Plugin node-resolve: Could not resolve import "@lyrasearch/lyra/dist/esm/stemmer/lib/no" in /home/alexander/Workspace/knowit/client/svv/dtm/src/lib/search.js using exports defined in /home/alexander/Workspace/knowit/client/svv/dtm/node_modules/@lyrasearch/lyra/package.json.
instead. Is there a breaking change?