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

[ERROR] Cannot resolve dependency 'paper' #20

Closed
loretoparisi opened this issue May 13, 2020 · 3 comments
Closed

[ERROR] Cannot resolve dependency 'paper' #20

loretoparisi opened this issue May 13, 2020 · 3 comments

Comments

@loretoparisi
Copy link

loretoparisi commented May 13, 2020

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
Copy link

thllwg commented May 13, 2020

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

@loretoparisi
Copy link
Author

@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
Copy link

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

Screenshot 2021-04-23 at 17 09 32

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

3 participants