-
Notifications
You must be signed in to change notification settings - Fork 118
"Signature" example is broken, project is confusing. #77
Comments
I have the same issue |
I have the same issue. I need a very simple signature module in my customer app. |
I have the same issue |
I have the same issue. I had it working fine using v1.0.1, and then updated to v1.1.0. Unfortunately now even if I explicitly use v1.0.1 it's not working. I get two errors:
What's so frustrating is that this was working fine and now it's not and I was expecting to deliver this functionality to clients next Tuesday 😞 |
Hi @lanklaas thanks for the quick reply. Unfortunately that didn't make a difference. I get the same error(s). I installed Here are the versions of expo-pixi and dependents that I've now got installed (using yarn list):
Here's the stack trace if it's any use...
|
Hi @isocra, Did you try to delete the node_modules and the package-lock.json and re-install everything? I see there is still an alpha.5 and everything needs to be alpha.3. browser-polyfill is a package that pixi uses and the @expo/browser-polyfill just forces that sub dependency to be on a specific version. Here are my dependencies: "dependencies": {
"@expo/vector-icons": "^9.0.0",
"babel-preset-expo": "5.1.1",
"classnames": "2.2.6",
"color": "1.0.3",
"expo": "^32.0.0",
"@expo/browser-polyfill": "0.0.1-alpha.3",
"expo-asset-utils": "1.0.0",
"expo-image-cropper-gl-react": "^1.1.1",
"expo-pixi": "1.0.1",
"react-native-svg-uri": "1.2.3",
"jest-cli": "20.0.4",
"lz-string": "^1.4.4",
"moment": "2.13.0",
"native-base": "2.6.1",
"react": "16.5.0",
"react-native": "https://github.com/expo/react-native/archive/sdk-32.0.0.tar.gz",
"react-native-animatable": "1.3.0",
"react-native-calendars": "1.5.6",
"react-native-carousel-view": "0.5.1",
"react-native-easy-grid": "0.1.17",
"react-native-image-gallery": "^2.1.5",
"react-native-modal-datetime-picker": "6.0.0",
"react-native-modalbox": "1.4.2",
"react-native-qrcode": "0.2.7",
"react-native-view-shot": "^2.5.0",
"react-navigation": "1.5.11"
} and the browser-polyfill stuff in my package-lock.json: "@expo/browser-polyfill": {
"version": "0.0.1-alpha.3",
"resolved": "https://registry.npmjs.org/@expo/browser-polyfill/-/browser-polyfill-0.0.1-alpha.3.tgz",
"integrity": "sha512-EPoxgpnRv/la0jQcVtbTiX3BmOzWpp+/aMkYhNmaeJo3xYEnpuhpUfbbadt1hPkySs7lseHT2FM8yTTptN+CcA==",
"requires": {
"adaptive-bezier-curve": "1.0.3",
"adaptive-quadratic-curve": "1.0.2",
"color-parser": "0.1.0",
"earcut": "2.1.3",
"extrude-polyline": "1.0.6",
"fbemitter": "^2.1.1",
"react-native-console-time-polyfill": "^0.0.6",
"string-format": "2.0.0",
"text-encoding": "^0.6.4",
"xmldom-qsa": "^1.0.3"
}
}
"expo-pixi": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/expo-pixi/-/expo-pixi-1.0.1.tgz",
"integrity": "sha512-TWmnpj8hnrLyYsiUWUkNU3CJIb9PDzmaN2M4AiC4vn/wUPR9Wfq1U1ro4T5bRhJGO1I2g2+g9TOd30OoPUUtEQ==",
"requires": {
"@expo/browser-polyfill": "^0.0.1-alpha.3",
"fbemitter": "2.1.1",
"gl-matrix": "2.6.1",
"path": "^0.12.7",
"pixi-filters": "*",
"pixi-spine": "^1.5.11",
"pixi.js": "^4.7.0",
"url": "^0.11.0"
} |
@lanklaas, good news!! I've got it working! Here are my dependencies:
I did try deleting Thanks again @lanklaas for your help! |
Hi @lanklaas I think I've got to the bottom of the problem. In the package.json file for expo-pixi it says I've played around with a cloned version of expo-pixi and if I change the package.json dependencies to these, then it works: "dependencies": {
"@expo/browser-polyfill": "0.0.1-alpha.3",
"expo-asset-utils": "1.1.0",
"fbemitter": "2.1.1",
"gl-matrix": "^3.0.0",
"path": "^0.12.7",
"pixi-filters": "*",
"pixi-spine": "^1.5.11",
"pixi.js": "^4.7.0",
"url": "^0.11.0"
}, In fact it works without me having to add expo-asset-utils or the browser-polyfill to my own package.json. Note that I found I had to add I actually tried using 0.0.1-alpha.4 since that was the minimum version specified currently, but I can't get that to work, whereas the versions above work reliably with I'll make a PR in case you want to merge this in. |
I have the same issue |
I managed to get my examples to run using the latest expo sdk 33. I still had to modify my package.json as well as the package.json of expo-pixi.
to
These are the relevant dependencies in my package.json file:
|
I also found a solution for this:
|
Try this if you are using yarn. (I am using [email protected])
|
@fantatchi awesome! thank you so much. That makes me avoid using my fork version to force |
@fantatchi yes indeed, this fixes it for me too, thanks. It's a better working solution for us while no-one has merged #78 |
Refers to an archive in the repo root which doesn't exist, fixing that spews unhandled promise rejections (
TypeError: gl.createBuffer is not a function. (In 'gl.createBuffer()', 'gl.createBuffer' is undefined)]
), and attempting to draw anything brings up a nice red screen withundefined is not an object (evaluating '_this.renderer._update')
.Expanding; the blog post introducing this module doesn't contain a working example, the snack it links to is seven versions out of date, and the README in this repo opens with "side effects"(?) talking about
{ PIXI }
, then goes on to only useExpoPixi
, except in the example at the bottom where it usesExpo.GLView
.I'm really not sure what I'm supposed to think. :/
The text was updated successfully, but these errors were encountered: