8000 Bug with ref on component · Issue #3060 · riot/riot · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Bug with ref on component #3060

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

Closed
kachurun opened this issue May 24, 2025 · 3 comments
Closed

Bug with ref on component #3060

kachurun opened this issue May 24, 2025 · 3 comments
Assignees

Comments

@kachurun
Copy link
Member

Help us to manage our issues by answering the following

  1. Describe your issue:
    When you use ref={fn} on a child component, Riot crashes with
chunk-F4HUGK7Q.js:9979 Uncaught TypeError: Cannot read properties of undefined (reading 'replace')
    at dashToCamelCase
  1. Can you reproduce the issue?
    https://plnkr.co/edit/EUQPrE4JkvtNekeb

  2. Which version of Riot does it affect?
    Exact 9.4.6, versions below works great

@kachurun
Copy link
Member Author
kachurun commented May 24, 2025

Exact 9.4.6, versions below works great

Not exactly true, I just reset my package-lock and my project broke afterward.
The only way to make it work is to use Riot 9.4.4 and Compiler 9.4.2.
Only this combination works well.

GianlucaGuarini added a commit that referenced this issue May 30, 2025
GianlucaGuarini added a commit to riot/compiler that referenced this issue May 30, 2025
GianlucaGuarini added a commit to riot/util that referenced this issue May 30, 2025
GianlucaGuarini added a commit that referenced this issue May 30, 2025
@GianlucaGuarini
Copy link
Member

Thank you @kachurun the issue was patched in Riot.js@9.4.9

@kachurun
Copy link
Member Author

Thank you so much!

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

No branches or pull requests

2 participants
0