error in composeRestyleFunctions
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 25/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- react-native, typescript
- Ambito
- frontend, mobile-dev
Direzione di ricerca
Start at node_modules/@shopify/restyle/dist/composeRestyleFunctions.js, especially buildStyle and the funcsMap[key] call, then reproduce the failure on iOS with Hermes using @shopify/[email protected]. The issue is complete when the reported scenario no longer calls an undefined entry, but no reproduction project or source file is provided.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Current behavior
throw in:
// node_modules/@shopify/restyle/dist/composeRestyleFunctions.js
var buildStyle = function (props, _a) {
var theme = _a.theme, dimensions = _a.dimensions;
var styles = {};
var options = { theme: theme, dimensions: dimensions };
// We make the assumption that the props object won't have extra prototype keys.
// eslint-disable-next-line guard-for-in
for (var key in props) {
/* >> */ var mappedProps = funcsMap[key](props, options);
// eslint-disable-next-line guard-for-in
for (var mappedKey in mappedProps) {
styles[mappedKey] = mappedProps[mappedKey];
}
}
var stylesheet = react_native_1.StyleSheet.create({ stylesheet: styles }).stylesheet;
return stylesheet;
};
| shot |
|---|
Expected behavior
to code work fine
Stack Trace
TypeError: funcsMap[key] is not a function (it is undefined)
This error is located at:
in Unknown (created by Splash)
in RCTView (created by View)
in View
in Unknown (created by TouchableOpacity)
in TouchableOpacity (created by TouchableOpacity)
in TouchableOpacity (created by Splash)
in RCTView (created by View)
in View
in Unknown (created by AnimatedComponent(Component))
in AnimatedComponent(Component)
in Unknown (created by Splash)
in RCTView (created by View)
in View
in Unknown (created by AnimatedComponent(Component))
in AnimatedComponent(Component)
in Unknown (created by Splash)
in Splash (created by SceneView)
in StaticContainer
in EnsureSingleNavigator (created by SceneView)
in SceneView (created by SceneView)
in RCTView (created by View)
in View (created by DebugContainer)
in DebugContainer (created by MaybeNestedStack)
in MaybeNestedStack (created by SceneView)
in RCTView (created by View)
in View (created by SceneView)
in RNSScreen
in Unknown (created by InnerScreen)
in Suspender (created by Freeze)
in Suspense (created by Freeze)
in Freeze (created by DelayedFreeze)
in DelayedFreeze (created by InnerScreen)
in InnerScreen (created by Screen)
in Screen (created by SceneView)
in SceneView (created by NativeStackViewInner)
in Suspender (created by Freeze)
in Suspense (created by Freeze)
in Freeze (created by DelayedFreeze)
in DelayedFreeze (created by ScreenStack)
in RNSScreenStack (created by ScreenStack)
in ScreenStack (created by NativeStackViewInner)
in NativeStackViewInner (created by NativeStackView)
in RCTView (created by View)
in View (created by SafeAreaProviderCompat)
in SafeAreaProviderCompat (created by NativeStackView)
in NativeStackView (created by NativeStackNavigator)
in PreventRemoveProvider (created by NavigationContent)
in NavigationContent
in Unknown (created by NativeStackNavigator)
in NativeStackNavigator (created by NativeStackNavigation)
in NativeStackNavigation (created by Index)
in Index (created by App)
in EnsureSingleNavigator
in BaseNavigationContainer
in ThemeProvider
in NavigationContainerInner (created by App)
in ThemeProvider (created by App)
in QueryClientProvider (created by Provider)
in RCTView (created by View)
in View (created by KeyboardAvoidingView)
in KeyboardAvoidingView (created by Provider)
in RNCSafeAreaProvider (created by SafeAreaProvider)
in SafeAreaProvider (created by Provider)
in RCTView (created by View)
in View (created by GestureHandlerRootView)
in GestureHandlerRootView (created by Provider)
in Provider (created by App)
in App
in RCTView (created by View)
in View (created by AppContainer)
in RCTView (created by View)
in View (created by AppContainer)
in AppContainer
in RNComponents(RootComponent), js engine: hermes
To Reproduce
Platform:
- iOS (16.2, iPhone 14 Pro Max)
Environment
@shopify/[email protected]
- Lingua principale
- TypeScript
- Stelle
- 3.4k
- Fork
- 154
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Shopify/restyle
-
Reanimated 4.4.x animated components conflict with Restyle themeForse già presa @KAMRONBEK l’ha presa 131 giorni fa. Apertabug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 15/100
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
-
Cannot make custom componentApertabug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
Tutte le issue di Shopify/restyle
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 75/100
testing-library/jest-dom#749 ·
-
Duplicate "./pack-settings" export in packages/workflows/package.json makes `bun install` failAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
zed-industries/delta-claude#50 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
CDLUC3/dmptool-doc#660 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
stripe/stripe-terminal-react-native#1162 ·
I maintainer di solito rispondono entro 1 giorno