Closed dmarcosc closed 1 month ago
I am also facing this at the moment. Did you apply a patch or any other suggestions?
P.S. - I just patched it for now. It was causing a compile error on web for me. On native I haven't even noticed it 🤷♂️
diff --git a/node_modules/react-native-passkey/lib/module/index.js b/node_modules/react-native-passkey/lib/module/index.js
index ca16465..4be1d1c 100644
--- a/node_modules/react-native-passkey/lib/module/index.js
+++ b/node_modules/react-native-passkey/lib/module/index.js
@@ -1,3 +1,3 @@
-import { Passkey, PasskeyRegistrationResult, PasskeyAuthenticationResult } from './Passkey';
-export { Passkey, PasskeyRegistrationResult, PasskeyAuthenticationResult };
+import { Passkey } from './Passkey';
+export { Passkey };
//# sourceMappingURL=index.js.map
\ No newline at end of file
I solved it adding the dependancy on vite.config.ts rolloutoptions, and everything seems to work normally
rollupOptions: {
external: [
'react',
'react-dom',
'react/jsx-runtime',
'react-native',
'@tanstack/react-query',
'react-native-passkey'
],
treeshake: true
}
Hello, I have been facing this error where I add the library and when building my app I get
node_modules/react-native-passkey/lib/module/index.js (1:45): "PasskeyAuthenticationResult" is not exported by "node_modules/react-native-passkey/lib/module/Passkey.js", imported by "node_modules/react-native-passkey/lib/module/index.js".
for context I am using yarn, and this happens in both a react-native app and a ts library f I check my node_modules/react-native-passkey/lib/module/Passkey.js these types are indeed not present this is the content of Passkey.js