Giter VIP home page Giter VIP logo

Comments (7)

kbrsh avatar kbrsh commented on June 13, 2024

It seems to be working with this reproduction. What version of Moon are you using? Try logging this and verifying if it is undefined.

from moon.

MelonFunction avatar MelonFunction commented on June 13, 2024

Moon v1.0.0-beta.2 too. Here it is in component format https://github.com/Lomomn/WebstackTemplate/tree/master/frontend

When I add onCreate like in my example above and console.log(this), this===undefined.

from moon.

MelonFunction avatar MelonFunction commented on June 13, 2024

Any ideas?

from moon.

MelonFunction avatar MelonFunction commented on June 13, 2024

I also tested this with the moon-cli application and I still get the this===undefined error

from moon.

kbrsh avatar kbrsh commented on June 13, 2024

Looks like a bug. However, I think it has been fixed in 67b32ae. The way it works using prototypes isn't compatible with the compiler though, but I'm working on it.

I can't think of any workarounds right now, let me know if you find something or have any questions.

from moon.

kbrsh avatar kbrsh commented on June 13, 2024

Using another library would be good for now as Moon becomes a little more stable. Thanks for the bug report :)

from moon.

kbrsh avatar kbrsh commented on June 13, 2024

I don't know of any with a similar API, but check out Preact or Hyperapp. I'd also prefer if you could move this conversation to the Slack and keep GitHub only for discussion on issues :)

from moon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.