OpenMined / syft.js

The official Syft worker for Web and Node, built in Javascript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to add syft.js as a dependency to app

sachin-101 opened this issue · comments

Description

Unable to add Syft.js as a dependency in my application.

How to Reproduce

  1. I have added this to my app's package.json
"dependencies": {
    "@openmined/syft.js": "https://github.com/openmined/syft.js#eb3564",
    "@tensorflow/tfjs": "^1.3.2"
  },
  1. I keep getting this error.
$~/Desktop/Cryptly$ yarn build
yarn run v1.22.4
warning package.json: License should be a valid SPDX license expression
$ parcel build src/background.js -d dist/src/ -o background --no-minify && npm run copy
:rotating_light:  /home/sachin/Desktop/Cryptly/node_modules/@openmined/syft.js/dist/index.js:2:124: Cannot resolve dependency '@OpenMined/threepio'
  1 | (function (global, factory) {
> 2 |   typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@tensorflow/tfjs-core'), require('@openmined/threepio')) :
    |                                                                                                                            ^
  3 |   typeof define === 'function' && define.amd ? define(['exports', '@tensorflow/tfjs-core', '@OpenMined/threepio'], factory) :
  4 |   (global = global || self, factory(global.syft = {}, global.tf, global.threepio$1));
  5 | }(this, (function (exports, tf, threepio$1) { 'use strict';
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Expected Behavior

A beginner friendly guide to how to integrate syft.js into there application.

System Information

  • OS: PopOS
  • OS Version: 18.04 LTS
  • Package Manager Version: NPM 6.14.5, yarn 1.22.4

@sachin-101 I'm closing this, presuming there is no longer an issue.

Yeah. It is solved @cereallarceny 😃 Thaks for the quick fix @vvmnnnkv.