Closed patrickleet closed 2 years ago
solution is probably an initializer type function that takes all the config options?
I used this awesome repo as a starting point for building a web3auth service and integration for logging in with metamask and issuing jwts and refresh tokens.
As such, I had to resolve these same issues there to get packaging working.
https://github.com/CloudNativeEntrepreneur/sveltekit-web3auth
I'll make some PRs back to this repo to make the same type of refactors if no one else gets to it first, but I won't have time to do it for another couple weeks!
It worked out of the box for me.
I enabled Typescript support and was using node v16.13.1
@patrickleet which version of node are you using? I am currently using node v14.17.1 for this project.
To be clear, checking out this repo and running it works.
Using it as an npm package does not.
Ive been using 16/17.
Don't remember what I tried for this.
The server seems to be ok, but on the client side, the env substitution doesn't seem to be working on things inside node_modules
I forked the repo and was able to run it that way.