Giter Site home page Giter Site logo

Angular/typescript usage about node-sodium HOT 6 OPEN

grosch avatar grosch commented on August 24, 2024
Angular/typescript usage

from node-sodium.

Comments (6)

grosch avatar grosch commented on August 24, 2024 1

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.

from node-sodium.

nachozt avatar nachozt commented on August 24, 2024 1

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

from node-sodium.

paixaop avatar paixaop commented on August 24, 2024

from node-sodium.

paixaop avatar paixaop commented on August 24, 2024

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?

from node-sodium.

grosch avatar grosch commented on August 24, 2024
% 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* 

from node-sodium.

rawr51919 avatar rawr51919 commented on August 24, 2024

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

from node-sodium.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.