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

cannot resolve the dependency 'paper' ? #12

Open
amgoing opened this issue May 11, 2020 · 10 comments
Open

cannot resolve the dependency 'paper' ? #12

amgoing opened this issue May 11, 2020 · 10 comments

Comments

@amgoing
Copy link

amgoing commented May 11, 2020

an error("cannot resolve the dependency 'paper' ") occured when I try to use the command "yarn watch". I make sure that I use the 'npm install paper' command to install it. Maybe it was a redundant step, but I have no choice to do this. Could someone help me with this?
error

@LinkXSystem
Copy link

I also encountered the same problem, did you solve it? @amgoing

@keshamin
Copy link

Same thing.

@serapth
Copy link

serapth commented May 11, 2020

Open package.json
Change the paper line to:
"paper": "^0.12.1",

Then (for a later bug you will hit) while in package.json, go to the watch line and change it to:
"watch": "cross-env NODE_ENV=development parcel index.html --no-hmr --open --no-source-maps ",

The --no-source-maps is the key addition. No run
yarn
then run
yarn watch

You should be good now.

@amgoing
Copy link
Author

amgoing commented May 12, 2020 via email

@thllwg
Copy link

thllwg commented May 12, 2020

I made a PR (#15) that allows to run the application in a Docker container and fixes this problem.
You can build the container by running:
docker build --pull --rm -f "Dockerfile" -t poseanimator:latest "."
docker run --rm -it -p 1234:1234/tcp --device=/dev/video0:/dev/video0 poseanimator:latest

@hithismani
Copy link

Optionally, if you're on windows and are facing an fsevents issue, just remove the yarn.lock and the node_modules file before trying @serapth's fixes. It should work perfectly :)

@amgoing
Copy link
Author

amgoing commented May 12, 2020 via email

@hvitis
Copy link

hvitis commented Jun 10, 2020

Works great with your solution. Thank you @serapth

@Sba-Stuff
Copy link

If any of you got still issues, please go to third_party/paper/package.json and use version mentioned in that "package.json" file. Rest i followed what serapth said. Using Hardcode versions may cause issues.

image

image

@isharaNilnuwan
Copy link

thanks, @serapth for the solution

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

9 participants