Replies: 1 comment 2 replies
-
I have a similar issue with my plugin: capacitor-community/bluetooth-le#12 @distante Have you found any solutions/workaround in the meantime? |
Beta Was this translation helpful? Give feedback.
2 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.
Uh oh!
There was an error while loading. Please reload this page.
-
I am working in a capacitor plugin and I have troubles with non-interfaces exports.
I am declaring and exporting an
enum
declaration indefinition.ts
containing the listeners the plugin can have.The problem I am having is that in tests with
jest
I get this error when I try to import one of the enums:Everything works as expected in the ionic/angular project it self but I am not able to run unit tests.
If I remove the
enum
s and use plain strings everything works but I do not want to force the consumer to use magic strings.another problem I have is that when I want to enable the web version importing the plugin as recommended in the docs sends the same error.
Beta Was this translation helpful? Give feedback.
All reactions