Comments (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.
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.
`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.
Why a public project have this kind of error? T T....
from pose-animator.
Related Issues (20)
- SVG editing: do the polylines matter? or just the circle objects? HOT 2
- Setting up camera
- what the role of paper.js
- Animated Model's eyes doesn't change with the real person.
- Combining pose-animator with 3D Virtual Environment Engine
- It might be something wrong with ".gitignore"
- paper.default
- Multiple animations
- I need to run this in a room of clients. How do i do that ?
- pose-animator-master\node_modules\paper: Command failed.
- Not working on firebase url
- babel-polyfill error
- What is the method to bind the skin and bone?
- Unterminated string constant (17287:12)
- How to blink
- Custom model cant be run. Please help
- Export Animation HOT 1
- Version of nodejs?
- Error occur while launching (paper not found) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pose-animator.