Coder Social home page Coder Social logo

Build Error:- macOS about pose-animator HOT 4 OPEN

yemount avatar yemount commented on May 18, 2024
Build Error:- macOS

from pose-animator.

Comments (4)

ajaydexati avatar ajaydexati commented on May 18, 2024 4

on running yarn build after the above changes.
Environment - macOS and above error i mentioned is for mac os only
$yarn build

pose-animator-master/node_modules/paper/dist/paper-full.js:17258:12: Unterminated string constant (17258:12)
  17256 |                       }
  17257 |                       if (/^(inline|both)$/.test(sourceMaps)) {
> 17258 |                               code += "\n
        |                                      ^
  17259 |                                               + self.btoa(unescape(encodeURIComponent(
  17260 |                                                       JSON.stringify(map))));
  17261 |                       }
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

from pose-animator.

matthewtoast avatar matthewtoast commented on May 18, 2024 1

My workaround was to hand-edit node_modules/paper/dist/paper-full.js. This is offending block:

			if (/^(inline|both)$/.test(sourceMaps)) {
				code += "\n//# sourceMappingURL=data:application/json;base64,"
						+ self.btoa(unescape(encodeURIComponent(
							JSON.stringify(map))));
			}
			code += "\n//# sourceURL=" + (url || 'paperscript');

I changed it to:

			if (/^(inline|both)$/.test(sourceMaps)) {
				code += "\n\/\/# sourceMappingURL=data:application/json;base64," + self.btoa(unescape(encodeURIComponent( JSON.stringify(map))));
			}
			code += "\n\/\/# sourceURL=" + (url || 'paperscript');

And then everything worked.

from pose-animator.

h4rk8s avatar h4rk8s commented on May 18, 2024

`diff --git a/package.json b/package.json
index 2e6050b..2f82680 100644
--- a/package.json
+++ b/package.json
@@ -15,11 +15,11 @@
"@tensorflow/tfjs-converter": "^1.7.0",
"@tensorflow/tfjs-core": "^1.7.0",
"face-api.js": "^0.22.1",

  • "paper": "file:third_party/paper",
  • "paper": "^0.12.1",
    "stats.js": "^0.17.0"
    },
    "scripts": {
  • "watch": "cross-env NODE_ENV=development parcel index.html --no-hmr --open ",
  • "watch": "cross-env NODE_ENV=development parcel index.html --no-hmr --open --no-source-maps",
    "build": "cross-env NODE_ENV=production parcel build index.html --public-url ./",
    "build-camera": "cross-env NODE_ENV=production parcel build camera.html --public-url ./",
    "lint": "eslint .",
    `

then fixed!

from pose-animator.

pansy199211 avatar pansy199211 commented on May 18, 2024

Why a public project have this kind of error? T T....

from pose-animator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.