JupyterLab, TypeError: getOwnMetadataKeys is not a function #1567
Unanswered
manoj30075
asked this question in
Q&A
Replies: 1 comment 3 replies
-
there could be more than 1 reasons for this one. I assume you have the |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I’m currently developing an extension for JupyterLab. As part of this process, I’m utilizing the InversifyJS library from npm. To use it, I have to import ‘reflect-metadata’ in my index.ts file, which I have done. However, when I create an injectable class and use it in my extension, I encounter the following error:
This is part of my code
And I have imported the reflect-metadata at the index.ts 1st line.
Upon researching a solution for this error, the majority of sources suggest importing reflect-metadata at the root level file, which I have already done. I wrote Jest test cases for the Injectable class and the test cases are passing when I run them in the terminal, but when I run the extension in the browser, I get the above error. I’m uncertain about what I might be doing incorrectly.
Beta Was this translation helpful? Give feedback.
All reactions