Closed jaya271999 closed 1 year ago
Same here. Any advice?
We published v1.0.14 for this plugin, along with the backend part (v1.0.10). This should take care of this installation issues.
This issue is stale because it has been open for 15 days with no activity.
This issue was closed because it has been inactive for 7 days since being marked as stale.
Hi, I tried to install this plugin today, followed all the documentation provided and also rechecked everything from the youtube video i.e., https://www.youtube.com/watch?v=6xTDl7BUOdU. The following error popped up after I installed the backend plugin (@enfuse/plugin-chatgpt-backend) : import { createVersionedContext, createVersionedValueMap, useVersionedContext, getOrCreateGlobalSingleton } from '@backstage/version-bridge'; SyntaxError: Cannot use import statement outside a module [1] at Object.compileFunction (node:vm:352:18) [1] at wrapSafe (node:internal/modules/cjs/loader:1033:15) [1] at Module._compile (node:internal/modules/cjs/loader:1069:27) [1] at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10) [1] at Module.load (node:internal/modules/cjs/loader:981:32) [1] at Function.Module._load (node:internal/modules/cjs/loader:822:12) [1] at Module.require (node:internal/modules/cjs/loader:1005:19) [1] at require (node:internal/modules/cjs/helpers:102:18) [1] at Object. (/opt/Backstage_code/test/bks-poc.zip/backstage-code-backup/node_modules/@enfuse/plugin-chatgpt-backend/dist/index.cjs.js:9:21)
[1] at Module._compile (node:internal/modules/cjs/loader:1105:14)
[1] at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
[1] at Module.load (node:internal/modules/cjs/loader:981:32)
[1] at Function.Module._load (node:internal/modules/cjs/loader:822:12)
[1] at Module.require (node:internal/modules/cjs/loader:1005:19)
[1] at require (node:internal/modules/cjs/helpers:102:18)
[1] at Object.@enfuse/plugin-chatgpt-backend (/opt/Backstage_code/test/bks-poc.zip/backstage-code-backup/packages/backend/dist/main.js:434:18)
I confirmed that the error was with this chat gpt plugin by uninstalling this plugin and then my backstage works fine like earlier it used to. Found similar issue: https://github.com/backstage/backstage/issues/15314, but don't know how to resolve this. @ch-enfuse @willoh1998 any help on this will be appreciated.