MasterKale / SimpleWebAuthn

WebAuthn, Simplified. A collection of TypeScript-first libraries for simpler WebAuthn integration. Supports modern browsers, Node, Deno, and more.
https://simplewebauthn.dev
MIT License
1.63k stars 137 forks source link

default not exported #93

Closed jkassis closed 3 years ago

jkassis commented 3 years ago

this is generated from my rollup...

'default' is not exported by apps/store/code/node_modules/@simplewebauthn/browser/dist/simplewebauthn-browser.min.js

thus import SimpleWebAuthnBrowser from '@simplewebauthn/browser' does not work

jkassis commented 3 years ago

also this...

Error: 'supportsWebauthn' is not exported by apps/store/code/node_modules/@simplewebauthn/browser/dist/simplewebauthn-browser.min.js,

MasterKale commented 3 years ago

@jkassis Can you provide some kind of basic setup that recreates this issue? I've not really used Rollup for anything significant so I have no idea why it's not liking the exports - a Webpack-based project (Create-React-App) is able to import the code fine so unfortunately no fix for Rollup comes to mind.

MasterKale commented 3 years ago

I'm going to close this for now. Please feel free to reopen if you can provide a reproduction I can use for further investigation.