-
Notifications
You must be signed in to change notification settings - Fork 73
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
Can't initialize Vuforia #62
Comments
Hmm... seems to be, not a mistake, but perhaps some code that can lead to a problem in the Vuforia demo (TypeScript). Here's the issue:
I put the
I guess if there's a takeaway, it's a little unfortunate that "the wrong |
So, just to help me understand, in are you actually trying to use Of course, in some of those cases, I'm using |
@speigg do you agree, I think we should change the various promise callback functions in the Typescript samples to use fat arrow syntax, just to avoid this sort of thing when people repurpose the code. |
Yes, I have code like, er, this (copied from the example but with some
The non-fat-arrow syntax on the first line causes the "
So the solution for my specific case is to change that first line to use fat arrow syntax (which fixed the problem). But that leaves two other questions:
|
This really just amounts to a bug in the way we display errors in the console. For the samples, we can certainly switch to the fat arrow functions. |
ok, I'm changing the vuforia sample. Not sure how to change the library to help; if you can see how, perhaps submit a PR? |
Well, maybe I'm confused by where the error is originating. If "this.app" was undefined, I would have expected an error more like "property vuforia doesn't exist on 'undefined' when calling 'this.app.vuforia.init' ". I feel like I've seen that sort of thing a lot. Maybe it's more browser-dependent than I realize, though? |
Yeah, that's exactly what the error should have been. This is a bug in how we are handling and presenting errors in the browser. We'll see if we can figure out why that is and fix it. |
I'm having the same issue with my app . The object returnded by "app.vuforia.isAvailable()" seems to be empty. |
Without seeing the actual code it's impossible to say what might be wrong. Can you please post a link to something that does this? Obvious questions are: is argon initialized? What other errors / messages are there? How do you know it's returning an empty object (and what does "empty" mean?)? |
The code is the same as the vuforia sample , with my licence key .(nothing else has been changed) |
When I tried writing my own example, Vuforia doesn't load in Argon4. My code looks like this:
I see neither of these outputs (not 'yes', not 'no'). Instead, I get this (when viewing the console in Argon4):
Any ideas? I have tried with and without an allowed origin set. I see my 3D object positioned to the north, so the basics are working, but not Vuforia. (It did work OK when I tried viewing the Vuforia sample on the Argon site, just not with my code.)
The text was updated successfully, but these errors were encountered: