alebcay / openlens-node-pod-menu

Node and pod menus for OpenLens
https://www.npmjs.com/package/@alebcay/openlens-node-pod-menu
MIT License
808 stars 42 forks source link

[EXTENSIONS-LOADER]: can't load renderer for "@alebcay/openlens-node-pod-menu" #90

Closed jhoelzel closed 1 year ago

jhoelzel commented 1 year ago

Thank you for developing this plugin and not leaving us in the rain like mirantis likes to do =)

I just freshly installed the plugin in openlens version 6.5.2-356 and i am having trouble in order to get it work. The error in the dev console reads:

`BrowserConsole.js:47 [EXTENSIONS-LOADER]: can't load renderer for "@alebcay/openlens-node-pod-menu": Error: Cannot find module 'C:\Users\johan\AppData\Roaming\OpenLens\node_modules\@alebcay\openlens-node-pod-menu\dist\renderer.js' Require stack:

I hope this helps. best, jhoelzel

Further Info: OS: Windows 11 pro

jhoelzel commented 1 year ago

Anther thing i found is that when i try to uninstall the extention, i get an error that the node-module does not exists, which makes me believe that the two are related: image

jhoelzel commented 1 year ago

More info: The path above seems to be a symlink to: C:\Users\johan\.k8slens\extensions\alebcay--openlens-node-pod-menu

so the actual extention is stored in my private user profile and then linked in app data roaming.

alebcay commented 1 year ago

Hi, thanks for the information. This looks like a duplicate of https://github.com/alebcay/openlens-node-pod-menu/issues/40. I will close this to avoid confusion but please feel free to continue the conversation there - there appears to be a workaround provided over there too.

As noted over there, this seems to be an issue with how Lens loads/installs extensions; I've yet to find anything I can do in building/packaging the extension to fix this.