LunaticMuch / docusaurus-terminology

docusaurus-terminology
BSD 2-Clause "Simplified" License
4 stars 3 forks source link

Not able to generate glossary #27

Open rpo-fr opened 2 weeks ago

rpo-fr commented 2 weeks ago

When i run 'yarn docusaurus glossary --debug', i have an error ` Alphabetical list of terms ..\Documents\Workspaces\Documentations\user-documentation\node_modules\@lunaticmuch\docusaurus-terminology\lib\index.js:58 (0, _glossary.glossary)(options); ^

TypeError: (0 , _glossary.glossary) is not a function `

My docusaurus.config.js: [ '@lunaticmuch/docusaurus-terminology', { termsDir: './docs/terms', docsDir: './docs/', glossaryFilepath: './docs/glossary.md' }, ],,

I use docusaurus 3.3.2

T-Sana commented 5 days ago

Got the same issue, i deleted the line 60 of glossary.js "module.exports = { glossary };" because glossary was already exported and this fixed my issue. Hope it will help you.

I mean, once it's installed, in "node-modules/@lunaticmuch/docusaurus-terminology/lib/commands/glossary.js".