yemount / pose-animator

Apache License 2.0
8.72k stars 962 forks source link

[ERROR] Cannot resolve dependency 'paper' #20

Closed loretoparisi closed 4 years ago

loretoparisi commented 4 years ago

I get this error

pose-animator/static_image.js:21:23: Cannot resolve dependency 'paper'

when starting the server:

Server running at http://localhost:1234 
🚨  /Users/loretoparisi/Documents/MyProjects/pose-animator/static_image.js:21:23: Cannot resolve dependency 'paper'
  19 | import * as facemesh_module from '@tensorflow-models/facemesh';
  20 | import * as tf from '@tensorflow/tfjs';
> 21 | import * as paper from 'paper';
     |                       ^
  22 | import "babel-polyfill";
  23 | 
  24 | import dat from 'dat.gui';

I have installed with yarn:

yarn install v1.15.2
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/5] 🔍  Validating package.json...
[2/5] 🔍  Resolving packages...
[3/5] 🚚  Fetching packages...
[4/5] 🔗  Linking dependencies...
warning "@tensorflow/tfjs > @tensorflow/tfjs-data@1.7.1" has unmet peer dependency "seedrandom@~2.4.3".
[5/5] 🔨  Building fresh packages...
warning Your current version of Yarn is out of date. The latest version is "1.22.4", while you're on "1.15.2".
info To upgrade, run the following command:
$ brew upgrade yarn
thllwg commented 4 years ago

See #12, #4, #2 for solutions.

loretoparisi commented 4 years ago

@thllwg thank you I have solved following this

"paper": "^0.12.1",

and

"watch": "cross-env NODE_ENV=development parcel index.html --no-hmr --open --no-source-maps "

Then

yarn
yarn watch
AlexanderKozhevin commented 3 years ago

I used the advice above, but having other issue then.

Screenshot 2021-04-23 at 17 09 32