lenis: Cannot read private member from an object whose class did not declare it

Describe the bug I use Lenis in my Nuxt3-Lenis module and since I updated with the latest version of Lenis I have an error when I’m using lenis.start() and lenis.stop(). It worked with version 1.0.27

Capture d’écran, le 2024-02-15 à 08 03 45

I tried to fix it but without much success.

start() {
  this.isStopped = false //  this.#isStopped = false
  this.reset()
}

stop() {
  this.isStopped = true //  this.#isStopped = true
  this.animate.stop()

  this.reset()
}

About this issue

  • Original URL
  • State: closed
  • Created 5 months ago
  • Comments: 18 (8 by maintainers)

Most upvoted comments

ok that’s not ideal anyway, thank you for your feedback, I must find a better way to handle it imo. Imma revert to previous way.

I can’t access your sandbox either @clementroche

image