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

Angular/typescript usage #143

Open
grosch opened this issue Dec 3, 2018 · 6 comments
Open

Angular/typescript usage #143

grosch opened this issue Dec 3, 2018 · 6 comments

Comments

@grosch
Copy link

grosch commented Dec 3, 2018

Are there examples of how to use this with angular?

@paixaop
Copy link
Owner

paixaop commented Dec 3, 2018 via email

@grosch
Copy link
Author

grosch commented Dec 6, 2018

After doing the npm install sodium I did my ng build but I get a bunch of errors like so:

ERROR in ./node_modules/sodium/lib/keys/dh-key.js
Module not found: Error: Can't resolve '../../build/Release/sodium' in '/Users/scott/VoiceTalentBank/node_modules/sodium/lib/keys'

I'm doing this on macOS Mojave. During the install I saw a bunch of warnings about deprecated methods being called but it did succeed.

@paixaop
Copy link
Owner

paixaop commented Dec 7, 2018

The deprecations are from libsodium and should not cause issues. It seems that NG cannot find the binary module for sodium. Can you check the build directory under node sodium to see if it is there after node sodium install runs successfully?

@grosch
Copy link
Author

grosch commented Dec 8, 2018

% find . -name libsodium.a
./node_modules/sodium/deps/libsodium/src/libsodium/.libs/libsodium.a
./node_modules/sodium/deps/build/lib/libsodium.a
% pushd node_modules/sodium/lib/keys
% ls ../../build/Release/
nothing.a    obj.target/  sodium.node* 

@nachozt
Copy link

nachozt commented Aug 23, 2019

I get the same errors. Any work around for using it with angular?

@rawr51919
Copy link

rawr51919 commented Jan 12, 2020

Could these errors be related to issues #144 and #146?

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

4 participants