undefined is not a function [buildStyle(@shopify/restyle/dist/composeRestyleFunctions)]
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- react-native, typescript
調査の方向性
Start with dist/composeRestyleFunctions.js at buildStyle, then follow the calls from createVariant.js and hooks/useRestyle.js in the supplied stack trace. Try to establish a reproduction for @shopify/restyle v2.4.2 on the stated iOS device and configuration; the issue is complete when the reported touch-triggered fatal crash is reproducibly prevented or its cause is isolated.
索引モデルが issue の本文から書いたものです。
説明
Current behavior
I was just notified of a fatal error via Sentry. The stack trace is below.
It's probably relevant to note that this crash occurred immediately after a user touch event: Touch event within element: Text.
Expected behavior
The @shopify/restyle package should never fatally crash a RN app, regardless of user error or incorrect configuration.
I suspect this crash was somehow due to incorrect configuration, but I have no idea how/where, and moreover the crash only occurred on a single user device, across hundreds of sessions/devices.
Stack trace
TypeError: undefined is not a function
at buildStyle(/node_modules/@shopify/restyle/dist/composeRestyleFunctions.js:38:44)
at func(/node_modules/@shopify/restyle/dist/createVariant.js:36:80)
at buildStyle(/node_modules/@shopify/restyle/dist/composeRestyleFunctions.js:38:44)
at anonymous(/node_modules/@shopify/restyle/dist/hooks/useRestyle.js:40:55)
at HooksDispatcherOnMount.useMemo(/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:4062:30)
at exports.useDeferredValue(/node_modules/react/cjs/react.production.min.js:25:215)
at useRestyle(/node_modules/@shopify/restyle/dist/hooks/useRestyle.js:39:46)
at createRestyleComponent(/node_modules/@shopify/restyle/dist/createRestyleComponent.js:25:51)
at renderWithHooks(/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:3525:22)
at updateForwardRef(/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:4316:30)
at beginWork$1(/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:7929:25)
at performUnitOfWork(/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:7304:25)
at workLoopSync(/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:7297:54)
at renderRootSync(/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:7279:19)
at performSyncWorkOnRoot(/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:6975:34)
at flushSyncCallbacks(/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:2145:31)
at batchedUpdatesImpl(/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:8462:58)
at batchedUpdates(/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:1106:30)
at _receiveRootNodeIDEvent(/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:1137:17)
at ReactNativePrivateInterface.RCTEventEmitter.register$argument_0.receiveTouches(/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:1209:30)
at apply(native)
at __callFunction(/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:433:34)
at __guard$argument_0(/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:113:26)
at __guard(/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:368:11)
at callFunctionReturnFlushedQueue(/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:112:17)
To Reproduce
TBD.
Platform:
- iOS (17.2.1, iPhone 13 Pro)
Environment
@shopify/[email protected]
- 主要言語
- TypeScript
- スター
- 3.4k
- フォーク
- 154
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Shopify/restyle のほかの issue
-
Reanimated 4.4.x animated components conflict with Restyle theme対応中かも @KAMRONBEK が 131 日前に担当しました。 オープンbug
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 15/100
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
Shopify/restyle の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
testing-library/jest-dom#749 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
zed-industries/delta-claude#50 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
CDLUC3/dmptool-doc#660 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
stripe/stripe-terminal-react-native#1162 ·
メンテナーはふだん 1 日以内に返信