bitwiseshiftleft / sjcl

Stanford Javascript Crypto Library
http://bitwiseshiftleft.github.com/sjcl/
Other
7.18k stars 986 forks source link

Anonymous request to use sjcl #415

Open fsereno opened 4 years ago

fsereno commented 4 years ago

We are getting the following on our site from Require JS:

Mismatched anonymous define() module: function(){return sjcl}

We do not knowingly use sjcl.js anywhere in our solution, why and how would our site be requesting sjcl.js ?

The error is just a result of the module trying to load as AMD, but I am very confused why we are getting this when we do not use sjcl.

What kind of resources use sjcl and how could I find out ?

ForestJohnson commented 4 years ago

This would be much better as a stack overflow question than as an issue on this repository. SJCL has nothing to do with your issue. The issue you have is with YOUR application, not with SJCL.

Probably one of the other packages you are using on your site has sjcl as a dependency.

Maybe you should use the JS debugger in the browser, turn on break on unhandled exceptions, then load the page and check the stack trace of how you got to that code. that should tell you who is requiring sjcl.