Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught SyntaxError: Unexpected token '<' (at prime.worker.js:1:1) #41

Open
subramanya9112 opened this issue Jul 24, 2022 · 0 comments

Comments

@subramanya9112
Copy link

Built the react app which uses the hybrid-crypto-js. On built deployed there is a request to forge/prime.worker.js

var rsa = new RSA();
rsa.generateKeyPair((key) => {
    const publicKey = key.publicKey;
    const privateKey = key.privateKey;
    setPublicKey(publicKey);
    setPrivateKey(privateKey);
    setLoaded(true);
});

This is the code in that component. The same build when run on local runs fine i.e, on localhost, but with some domain it fails.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant