Skip to content

Conversation

@dohooo
Copy link
Owner

@dohooo dohooo commented Dec 13, 2025

Summary

  • Upgrades react-native-worklets from 0.5.1 to 0.5.2
  • Fixes the web documentation examples crash that caused all live examples on rn-carousel.dev to show "Loading..." indefinitely

Problem

The web examples were crashing with the error:

WorkletsError: [Worklets] createSerializableObject should never be called in JSWorklets.

This was caused by a bug in react-native-worklets 0.5.1 where globalThis.__RUNTIME_KIND was accessed before initialization in lazy import environments (like web).

Solution

Upgrade to react-native-worklets 0.5.2 which contains the fix from software-mansion/react-native-reanimated#8300.

Test plan

  • Verified locally that the web examples now load correctly without errors
  • Started the example app with yarn web and confirmed the carousel works

Fixes #864

Fixes #864

The documentation website examples were crashing with error:
"WorkletsError: createSerializableObject should never be called in JSWorklets"

This was caused by a bug in react-native-worklets 0.5.1 where the
PlatformChecker was not properly initialized in lazy import environments
like web. The fix was released in version 0.5.2.

Changes:
- Upgrade react-native-worklets from 0.5.1 to 0.5.2 in root package.json
- Upgrade react-native-worklets from 0.5.1 to 0.5.2 in example/app
@vercel
Copy link

vercel bot commented Dec 13, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
react-native-reanimated-carousel Ready Ready Preview, Comment Dec 13, 2025 6:10am

@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Dec 13, 2025
@changeset-bot
Copy link

changeset-bot bot commented Dec 13, 2025

🦋 Changeset detected

Latest commit: 317e073

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
react-native-reanimated-carousel Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@dosubot
Copy link

dosubot bot commented Dec 13, 2025

Related Documentation

Checked 1 published document(s) in 1 knowledge base(s). No updates required.

How did I do? Any feedback?  Join Discord

@dosubot dosubot bot added the bug Something isn't working label Dec 13, 2025
@codecov
Copy link

codecov bot commented Dec 13, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.90%. Comparing base (8da1e93) to head (317e073).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #875   +/-   ##
=======================================
  Coverage   81.90%   81.90%           
=======================================
  Files          35       35           
  Lines        1006     1006           
  Branches      339      337    -2     
=======================================
  Hits          824      824           
  Misses         81       81           
  Partials      101      101           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@dohooo dohooo merged commit 13861ac into main Dec 13, 2025
6 checks passed
@dohooo dohooo deleted the fix/web-worklets-error branch December 13, 2025 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

All the live examples on the official documentation website appear to be broken

2 participants