Skip to content
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

Cannot read property 'node' of undefined #43

Open
jonasholfeld opened this issue Jan 7, 2021 · 2 comments
Open

Cannot read property 'node' of undefined #43

jonasholfeld opened this issue Jan 7, 2021 · 2 comments

Comments

@jonasholfeld
Copy link

I have 2 different Vue projects wich both use handtrackjs. The components which use handtrackjs are identical. In the newer project i get the following error:

Uncaught (in promise) TypeError: Cannot read property 'node' of undefined
at e.evaluateFeature (webpack-internal:///./node_modules/@tensorflow/tfjs-core/dist/tf-core.esm.js:250)
at e.get (webpack-internal:///./node_modules/@tensorflow/tfjs-core/dist/tf-core.esm.js:250)
at e.register (webpack-internal:///./node_modules/@tensorflow/tfjs-core/dist/tf-core.esm.js:250)
at e.registerTensor (webpack-internal:///./node_modules/@tensorflow/tfjs-core/dist/tf-core.esm.js:250)
at new e (webpack-internal:///./node_modules/@tensorflow/tfjs-core/dist/tf-core.esm.js:250)
at Function.e.make (webpack-internal:///./node_modules/@tensorflow/tfjs-core/dist/tf-core.esm.js:250)
at tensor (webpack-internal:///./node_modules/@tensorflow/tfjs-core/dist/tf-core.esm.js:250)
at Module.tensor2d (webpack-internal:///./node_modules/@tensorflow/tfjs-core/dist/tf-core.esm.js:250)
at eval (webpack-internal:///./node_modules/handtrackjs/src/index.js:131)
at eval (webpack-internal:///./node_modules/@tensorflow/tfjs-core/dist/tf-core.esm.js:250)

Whereas in the old project everything works as expected. Both projects use the same handtrackjs version + same Vue version. Is there any hint what might cause this behaviour?

@vincentwinkel
Copy link

vincentwinkel commented Jan 15, 2021

I have the same issue. Here is a component made quickly as test:

<template>
<canvas ref="canvas" style="background: green;"></canvas>
</template>
<script>
import Vue from 'vue';
import {
  Component
} from 'vue-property-decorator';
import * as handTrack from 'handtrackjs';

@Component({
  name: 'AirControl',
  data() {
    return {
      model: null
    };
  },
  async mounted() {
    this.model = await handTrack.load();
    console.log('model loaded');
  }
})
export default class AirControl extends Vue {}
</script>

Result: same error as the initial post. I don't even see the model loaded log message.

Note: I use tensorFlow 2.7.0.

@vincentwinkel
Copy link

Any update ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants