Skip to content

[BUG] Same example as in #383, but throws an error with engine-seed. #385

@trusktr

Description

@trusktr

I've taken the working sample that I've shown in #383 and tried to run it in engine-seed (off of commit d317ce45cb). The only change I've made to the source is change the famous.*.* dependencies to require('famous/*/*') format. Now instead of the code running like you'll see if you paste the example from #383 into a famous.org editor, you'll see this error:

Uncaught Error: This node does not have access to a transform component

Here's a link to the branch of my engine-seed fork where this error happens: https://github.com/trusktr/engine-seed/tree/position-bug

If you change line 116 from

                    let cardNode = scene.addChild(new BetterNode)

to

                    let cardNode = scene.addChild(new Node)

You'll notice that not using the extended Node class results in the error going away! (I was lacking a name for the extended Node so, BetterNode. 😆)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions