ReactVision / starter-kit

React Native project setup with Viro 🚀
MIT License
127 stars 90 forks source link

Undefined constant when building using a locally built viro-react #43

Closed cgaydier closed 5 months ago

cgaydier commented 2 years ago

Using node v16.3.0 on windows, in package.json

    "@viro-community/react-viro": "file:../ns-viro/viro-community-react-viro-2.23.0.tgz",
    "react": "17.0.2",
    "react-native": "0.65.1"

I got an error when trying to run npm run android

TypeError: undefined is not an object (evaluating '_$$_REQUIRE(_dependencyMap[4], "@viro-community/react-viro").ViroConstants.TRACKING_NORMAL')

The app opens for some seconds and the camera seems to work before it crashes.

Related to #37

c4ffein commented 2 years ago

As it was said on the Discord by another user : change ViroConstants with ViroTrackingStateConstants https://viro-community.readme.io/docs/viroconstants

c4ffein commented 2 years ago

Maybe do a PR?

c4ffein commented 2 years ago

39 Already tries to fix this

cgaydier commented 2 years ago

Fix thanks to #39 and PR #40

robertjcolley commented 5 months ago

Fixed in the latest starter kit!