You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure what I am doing wrong while trying to run the example
My steps:
clone the repo (commit id: 6d8bc7f , most recent commit some days ago)
cd example
yarn install
4.1 yarn web
ERROR in ../package/src/views/SkiaView.web.tsx 1:483-542
Module not found: Error: Can't resolve '@babel/runtime/helpers/possibleConstructorReturn' in '/Users/jacob/Documents/TestProjects/react-native-skia/package/src/views'
@ ../package/src/views/index.ts 1:71-92
@ ../package/src/index.ts 1:957-975
@ ../package/index.ts 1:66-82
@ ./src/Tests/useAssets.ts 1:278-315
@ ./src/App.tsx 1:628-656
@ ./index.web.js 17:21-40
ERROR in ../package/src/views/SkiaView.web.tsx 1:588-636
Module not found: Error: Can't resolve '@babel/runtime/helpers/getPrototypeOf' in '/Users/jacob/Documents/TestProjects/react-native-skia/package/src/views'
@ ../package/src/views/index.ts 1:71-92
@ ../package/src/index.ts 1:957-975
@ ../package/index.ts 1:66-82
@ ./src/Tests/useAssets.ts 1:278-315
@ ./src/App.tsx 1:628-656
@ ./index.web.js 17:21-40
ERROR in ../package/src/web/LoadSkiaWeb.tsx 1:27-82
Module not found: Error: Can't resolve '@babel/runtime/helpers/interopRequireDefault' in '/Users/jacob/Documents/TestProjects/react-native-skia/package/src/web'
@ ../package/src/web/index.ts 1:74-98
@ ./index.web.js 3:0-62 16:0-8
ERROR in ../package/src/web/LoadSkiaWeb.tsx 1:230-280
Module not found: Error: Can't resolve '@babel/runtime/helpers/asyncToGenerator' in '/Users/jacob/Documents/TestProjects/react-native-skia/package/src/web'
@ ../package/src/web/index.ts 1:74-98
@ ./index.web.js 3:0-62 16:0-8
ERROR in ../package/src/web/LoadSkiaWeb.tsx 1:320-364
Module not found: Error: Can't resolve 'canvaskit-wasm/bin/full/canvaskit' in '/Users/jacob/Documents/TestProjects/react-native-skia/package/src/web'
@ ../package/src/web/index.ts 1:74-98
@ ./index.web.js 3:0-62 16:0-8
ERROR in ../package/src/web/WithSkiaWeb.tsx 1:27-82
Module not found: Error: Can't resolve '@babel/runtime/helpers/interopRequireDefault' in '/Users/jacob/Documents/TestProjects/react-native-skia/package/src/web'
@ ../package/src/web/index.ts 1:371-395
@ ./index.web.js 3:0-62 16:0-8
ERROR in ../package/src/web/WithSkiaWeb.tsx 1:213-263
Module not found: Error: Can't resolve '@babel/runtime/helpers/asyncToGenerator' in '/Users/jacob/Documents/TestProjects/react-native-skia/package/src/web'
@ ../package/src/web/index.ts 1:371-395
@ ./index.web.js 3:0-62 16:0-8
611 errors have detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.
webpack 5.76.0 compiled with 611 errors in 3725 ms
4.2 yarn ios
warning: Run script build phase 'Bundle React Native code and images' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'RNSkia' from project 'RNSkia')
warning: Run script build phase 'Start Packager' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'RNSkia' from project 'RNSkia')
** BUILD FAILED **
The following build commands failed:
CompileC /Users/jacob/Library/Developer/Xcode/DerivedData/RNSkia-ctguwyowyladrtbxzwtspntkenbu/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-skia.build/Objects-normal/arm64/ViewScreenshotService.o /Users/jacob/Documents/TestProjects/react-native-skia/package/ios/RNSkia-iOS/ViewScreenshotService.mm normal arm64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'react-native-skia' from project 'Pods')
CompileC /Users/jacob/Library/Developer/Xcode/DerivedData/RNSkia-ctguwyowyladrtbxzwtspntkenbu/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-skia.build/Objects-normal/arm64/SkiaUIView.o /Users/jacob/Documents/TestProjects/react-native-skia/package/ios/RNSkia-iOS/SkiaUIView.mm normal arm64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'react-native-skia' from project 'Pods')
CompileC /Users/jacob/Library/Developer/Xcode/DerivedData/RNSkia-ctguwyowyladrtbxzwtspntkenbu/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-skia.build/Objects-normal/arm64/SkiaPictureViewManager.o /Users/jacob/Documents/TestProjects/react-native-skia/package/ios/RNSkia-iOS/SkiaPictureViewManager.mm normal arm64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'react-native-skia' from project 'Pods')
CompileC /Users/jacob/Library/Developer/Xcode/DerivedData/RNSkia-ctguwyowyladrtbxzwtspntkenbu/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-skia.build/Objects-normal/arm64/SkiaMetalRenderer.o /Users/jacob/Documents/TestProjects/react-native-skia/package/ios/RNSkia-iOS/SkiaMetalRenderer.mm normal arm64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'react-native-skia' from project 'Pods')
CompileC /Users/jacob/Library/Developer/Xcode/DerivedData/RNSkia-ctguwyowyladrtbxzwtspntkenbu/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-skia.build/Objects-normal/arm64/SkiaManager.o /Users/jacob/Documents/TestProjects/react-native-skia/package/ios/RNSkia-iOS/SkiaManager.mm normal arm64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'react-native-skia' from project 'Pods')
CompileC /Users/jacob/Library/Developer/Xcode/DerivedData/RNSkia-ctguwyowyladrtbxzwtspntkenbu/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-skia.build/Objects-normal/arm64/SkiaDrawViewManager.o /Users/jacob/Documents/TestProjects/react-native-skia/package/ios/RNSkia-iOS/SkiaDrawViewManager.mm normal arm64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'react-native-skia' from project 'Pods')
CompileC /Users/jacob/Library/Developer/Xcode/DerivedData/RNSkia-ctguwyowyladrtbxzwtspntkenbu/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-skia.build/Objects-normal/arm64/SkiaDomViewManager.o /Users/jacob/Documents/TestProjects/react-native-skia/package/ios/RNSkia-iOS/SkiaDomViewManager.mm normal arm64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'react-native-skia' from project 'Pods')
(7 failures)
info Run CLI with --verbose flag for more details.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
jacob@Jacobs-MacBook-Pro example %
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm not sure what I am doing wrong while trying to run the example
My steps:
cd example
yarn install
4.1
yarn web
4.2
yarn ios
specs
ruby: ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [arm64-darwin22]
gem: 3.4.17
macos m1 Ventura 13.4.1
Beta Was this translation helpful? Give feedback.
All reactions