-
-
Notifications
You must be signed in to change notification settings - Fork 992
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
Error ParagraphShadowNode.h file not found #3385
Comments
Hey! 👋 It looks like you've omitted a few important sections from the issue template. Please complete Description section. |
Hey! 👋 The issue doesn't seem to contain a minimal reproduction. Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem? |
same issue |
Hi @featlast! I've just built fresh React Native app on 0.77, added Gesture Handler 2.23.0 and replaced I see that you error logs point into |
@ROG3R-DEV I've done the same thing with 0.76.6, works fine on my end. |
This issue seems to be related to |
I'm not sure why static linking would break this. I've changed it in |
Hello @m-bert , greetings, that's right, I cleaned the build and the XCODE DerivedData and the error persisted. |
In that case, please provide a reproduction that we can look at 😅 |
Apologies, I don't have the time to create a standalone minimal reproduction at the moment. However, I can confirm that the following modification to the Podfile—adding additional require "json"
is_gh_example_app = ENV["GH_EXAMPLE_APP_NAME"] != nil
compilation_metadata_dir = "CompilationDatabase"
compilation_metadata_generation_flag = is_gh_example_app ? '-gen-cdb-fragment-path ' + compilation_metadata_dir : ''
header_search_paths = []
if ENV['USE_FRAMEWORKS']
header_search_paths.concat([
'"${PODS_CONFIGURATION_BUILD_DIR}/React-FabricComponents/React_FabricComponents.framework/Headers"',
'"${PODS_CONFIGURATION_BUILD_DIR}/React-FabricComponents/React_FabricComponents.framework/Headers/react/renderer/textlayoutmanager/platform/ios"',
])
end
Pod::Spec. new do |s|
# NPM package specification
package = JSON.parse(File.read(File.join(File.dirname(__FILE__), "package.json")))
s.name = "RNGestureHandler"
s.version = package["version"]
s.summary = package["description"]
s.homepage = "https://github.com/software-mansion/react-native-gesture-handler"
s.license = "MIT"
s.author = { package["author"]["name"] => package["author"]["email"] }
s.source = { :git => "https://github.com/software-mansion/react-native-gesture-handler", :tag => "#{s. version}" }
s.source_files = "apple/**/*.{h,m,mm}"
s.requires_arc = true
s.platforms = { ios: '11.0', tvos: '11.0', osx: '10.15', visionos: '1.0' }
s.xcconfig = {
"OTHER_CFLAGS" => "$(inherited) " + compilation_metadata_generation_flag,
'HEADER_SEARCH_PATHS' => header_search_paths. join(' ')
}
if defined?(install_modules_dependencies()) != nil
install_modules_dependencies(s);
else
s.dependency "React-Core"
end
end I suspect the issue is similar to a past one I encountered with Expo, which is discussed here: expo/expo#32142 |
This comment has been minimized.
This comment has been minimized.
@featlast this weirdly fixes the error, but do we know what the root cause is? ![]() |
Sorry, I made a mistake in my previous comment as those numbers are similar, I meant #3388 @featlast, @0xDing, @gideon-uiby, could you please check that PR? |
It works for me. React Native: 0.77 |
This fixed it for me
react-native 0.77.0 |
It's Worked For me uwu! |
I’m experiencing the same issue. I temporarily fixed it by downgrading to version 2.22.0, but the issue still persists in 2.23.0. I’m using React Native 0.77 |
This comment has been minimized.
This comment has been minimized.
Running into this too with
Downgrading to |
Not working for me 😖 |
i had same issue but solved. before
after
The two files differs at: show that in version 2.23.0, the following lines were added:
and using version 2.22.0, which does not have this header, allowed the build to succeed. |
Thanks @koreanddinghwan for that file links. |
Same Issue |
Same issue. Blocked on building. started on RN 76.2 v 2.23. Upgrated to RN 77.0. Still doesn't work with v 2.23. Downgrade to 2.22 fixed it |
I wanted to use 2.23 because of the bug fixes so I manually applied the patch introduced in the above mentioned PR and it worked like a charm. If you, like me, can't wait for the PR to be merged, add the following lines to the file
|
This comment has been minimized.
This comment has been minimized.
FYI, I've just released 2.23.1 that includes fix for this problem 😅 |
Description
Description
Showing All Errors Only
CompileC /Users/jose/Library/Developer/Xcode/DerivedData/FCliente-dqwkdzhglctoykctinygewyrwvpm/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RNGestureHandler.build/Objects-normal/arm64/RNGestureHandlerModule.o /Users/jose/Desktop/projects/Chile/newFileApp/FCliente/node_modules/react-native-gesture-handler/apple/RNGestureHandlerModule.mm normal arm64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'RNGestureHandler' from project 'Pods')
cd /Users/jose/Desktop/projects/Chile/newFileApp/FCliente/ios/Pods
/Users/jose/Desktop/projects/Chile/newFileApp/FCliente/node_modules/react-native-gesture-handler/apple/RNGestureHandlerModule.mm:17:9: fatal error: 'react/renderer/components/text/ParagraphShadowNode.h' file not found
17 | #import <react/renderer/components/text/ParagraphShadowNode.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/jose/Desktop/projects/Chile/newFileApp/FCliente/node_modules/react-native-gesture-handler/apple/RNGestureHandlerModule.mm:17:9: note: did not find header 'renderer/components/text/ParagraphShadowNode.h' in framework 'react' (loaded from '/Users/jose/Library/Developer/Xcode/DerivedData/FCliente-dqwkdzhglctoykctinygewyrwvpm/Build/Products/Debug-iphonesimulator/React-Core')
1 error generated.
/Users/jose/Desktop/projects/Chile/newFileApp/FCliente/node_modules/react-native-gesture-handler/apple/RNGestureHandlerModule.mm:17:9: 'react/renderer/components/text/ParagraphShadowNode.h' file not found
Steps to reproduce
none
Snack or a link to a repository
none
Gesture Handler version
2.23.0
React Native version
0.77
Platforms
iOS
JavaScript runtime
Hermes
Workflow
React Native (without Expo)
Architecture
Fabric (New Architecture)
Build type
Debug mode
Device
iOS simulator
Device model
No response
Acknowledgements
Yes
Steps to reproduce
none
Snack or a link to a repository
none
Gesture Handler version
2.23.0
React Native version
0.77
Platforms
iOS
JavaScript runtime
Hermes
Workflow
React Native (without Expo)
Architecture
Fabric (New Architecture)
Build type
Debug mode
Device
iOS simulator
Device model
No response
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: