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

I just want to run the project locally. But it doesn't work. This is the error message. #2

Closed
ParseDark opened this issue May 9, 2020 · 3 comments

Comments

@ParseDark
Copy link

hi, yemount.
I just want to run the project locally. But it doesn't work. This is the error message.
MacPro 15.6

Documents/pose-animator/node_modules/paper/dist/paper-full.js:17211:12: Unterminated string constant (17211:12)

  17209 | 			}
  17210 | 			if (/^(inline|both)$/.test(sourceMaps)) {
> 17211 | 				code += "\n
        | 				       ^
  17212 | 						+ self.btoa(unescape(encodeURIComponent(
  17213 | 							JSON.stringify(map))));
  17214 | 			}

Thanks your help.

@conradfuhrman
Copy link

This seems to be an issue with Parcel (parcel-bundler/parcel#2408). I added --no-source-maps to the watch script and was able to get it working.

@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

@ParseDark
Copy link
Author

Thanks for your response. I use the below solution and it works!

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.

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