Description
I am using react native sdk 53 with nativewind. Everything was working fine till 12 september 2025 (3 days ago). My project was building correctly with npx expi run:ios --device.
Suddenly I started getting the issue cannot find modulereact-native-worklets/plugin. I tried again and again and still got same error. After spending almost 20 hours I figured out that react-native-css-interop causing the issue. It tried to pull react-native-worklets but could not do so. I tried installing worklet library directly still didn't work.
This is the complete error:
ERROR node_modules/react-native-css-interop/.cache/ios.js: [BABEL] /Users/haadbaig/Documents/Work/JamesCoote/t-stop-pro/node_modules/react-native-css-interop/.cache/ios.js: Cannot find module 'react-native-worklets/plugin'
Require stack:
- /Users/haadbaig/Documents/Work/JamesCoote/t-stop-pro/node_modules/@babel/core/lib/config/files/plugins.js
- /Users/haadbaig/Documents/Work/JamesCoote/t-stop-pro/node_modules/@babel/core/lib/config/files/index.js
- /Users/haadbaig/Documents/Work/JamesCoote/t-stop-pro/node_modules/@babel/core/lib/index.js
- /Users/haadbaig/Documents/Work/JamesCoote/t-stop-pro/node_modules/metro-transform-worker/src/index.js
- /Users/haadbaig/Documents/Work/JamesCoote/t-stop-pro/node_modules/react-native-css-interop/dist/metro/transformer.js
- /Users/haadbaig/Documents/Work/JamesCoote/t-stop-pro/node_modules/metro/src/DeltaBundler/Worker.flow.js
- /Users/haadbaig/Documents/Work/JamesCoote/t-stop-pro/node_modules/metro/src/DeltaBundler/Worker.js
- /Users/haadbaig/Documents/Work/JamesCoote/t-stop-pro/node_modules/jest-worker/build/workers/processChild.js
Make sure that all the Babel plugins and presets you are using
are defined as dependencies or devDependencies in your package.json
file. It's possible that the missing plugin is loaded by a preset
you are using that forgot to add the plugin to its dependencies: you
can workaround this problem by explicitly adding the missing package
to your top-level package.json.
Steps to reproduce
- Setup nativewind. refer to their documentation
- Try building your project locally
Snack or a link to a repository
https://github.com/haadbaig/tstoppro-frontend
Reanimated version
3.17.4
Worklets version
0.2.0
React Native version
0.79.5
Platforms
iOS
JavaScript runtime
None
Workflow
None
Architecture
None
Build type
No response
Device
No response
Host machine
None
Device model
IPhone 12 pro max
Acknowledgements
Yes
Description
I am using react native sdk 53 with nativewind. Everything was working fine till 12 september 2025 (3 days ago). My project was building correctly with
npx expi run:ios --device.Suddenly I started getting the issue
cannot find modulereact-native-worklets/plugin. I tried again and again and still got same error. After spending almost 20 hours I figured out that react-native-css-interop causing the issue. It tried to pull react-native-worklets but could not do so. I tried installing worklet library directly still didn't work.This is the complete error:
ERROR node_modules/react-native-css-interop/.cache/ios.js: [BABEL] /Users/haadbaig/Documents/Work/JamesCoote/t-stop-pro/node_modules/react-native-css-interop/.cache/ios.js: Cannot find module 'react-native-worklets/plugin'
Require stack:
Make sure that all the Babel plugins and presets you are using
are defined as dependencies or devDependencies in your package.json
file. It's possible that the missing plugin is loaded by a preset
you are using that forgot to add the plugin to its dependencies: you
can workaround this problem by explicitly adding the missing package
to your top-level package.json.
Steps to reproduce
Snack or a link to a repository
https://github.com/haadbaig/tstoppro-frontend
Reanimated version
3.17.4
Worklets version
0.2.0
React Native version
0.79.5
Platforms
iOS
JavaScript runtime
None
Workflow
None
Architecture
None
Build type
No response
Device
No response
Host machine
None
Device model
IPhone 12 pro max
Acknowledgements
Yes