Skip to content
This repository has been archived by the owner on Jan 28, 2025. It is now read-only.

Cannot split scene into a separate component (ERR: too much recursion!) #68

Open
sniperadmin opened this issue Jun 25, 2020 · 0 comments

Comments

@sniperadmin
Copy link

Error: too much recursion!
This bug generates when splitting the code into separate components for organizing code

Minimally Reproducible Example
just a basic example:

<scene>
     <Camera type="arcRotate" :radius="10" :beta="Math.PI / 4" />
       <HemisphericLight>
           <property name="intensity" :float="1" />
       </HemisphericLight>

       <Ground :options="{ width: 10, height: 10, subdivisions: 4 }">
          <physics />
       </Ground>
</scene>

I would like to split the ground for example:

<!-- Ground.vue -->
<Ground :options="{ width: 10, height: 10, subdivisions: 4 }">
    <physics />
</Ground>

and importing in the main comp:

<template>
<scene>
     <Camera type="arcRotate" :radius="10" :beta="Math.PI / 4" />
       <HemisphericLight>
           <property name="intensity" :float="1" />
       </HemisphericLight>

       <Ground />
</scene>
</template>

<script lang="ts">
import { Component, Prop, Vue } from 'vue-property-decorator';
import Ground from './Ground.vue';

@Component({
  components: {
    Ground
  },
})
export default class HelloWorld extends Vue {}
</script>

Expected behavior
A normal import for the component

Environment (please complete the following information):

  • Device: [Desktop]
  • OS: [Windows10 64bit]
  • Browser [e.g. chrome, safari, firefox]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant