K-Phoen / backstage-plugin-confluence

Confluence plugins for backstage
MIT License
58 stars 15 forks source link

ElasticSearchSearchEngine error #151

Closed Ritwik6271 closed 1 year ago

Ritwik6271 commented 1 year ago

I'm new to Backstage. I tried installing this plugin but I'm not sure if I did anything wrong. I replaced the existing default async function createPlugin. But now I'm getting error when running it in local

2023-02-01T11:52:43.015Z techdocs info Creating Local publisher for TechDocs type=plugin
Backend failed to start up ReferenceError: ElasticSearchSearchEngine is not defined
    at createPlugin (webpack-internal:///./src/plugins/search.ts:74:26)
    at main (webpack-internal:///./src/index.ts:101:95)
K-Phoen commented 1 year ago

It looks like you're trying to use the ElasticSearchSearchEngine class without having importing it first :)