Cant run storybook Error: undefined is not a function(evaluating '_iterator[typeof Symbol === "function"?Symbol.iterator:"@@iterator"]()')
See original GitHub issueDescribe the bug
When trying to run storybook with React native 0.57 on android emulator, I get the following error
undefined is not a function(evaluating '_iterator[typeof Symbol === "function"?Symbol.iterator:"@@iterator"]()')
I can fix this by following this comment https://github.com/facebook/react-native/issues/15902#issuecomment-396963357 and update jsc android versions, but it feels like quite a workaround for having story book in our project.
To Reproduce Steps to reproduce the behavior: Create a new react project with RN 0.57 Follow the storybook setup guide Try to run the project
Expected behavior Show story book
Code snippets
undefined is not a function (evaluating '_iterator2[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"]()')
handleUpdate
index.delta?platform=android&dev=true&minify=false:63392:198
add
index.delta?platform=android&dev=true&minify=false:63472:19
registerWarning
index.delta?platform=android&dev=true&minify=false:61477:28
warn
index.delta?platform=android&dev=true&minify=false:61435:34
metroRequire
index.delta?platform=android&dev=true&minify=false:83:21
<unknown>
index.delta?platform=android&dev=true&minify=false:253500:31
loadModuleImplementation
index.delta?platform=android&dev=true&minify=false:262:14
guardedLoadModule
index.delta?platform=android&dev=true&minify=false:158:38
metroRequire
index.delta?platform=android&dev=true&minify=false:88:92
<unknown>
index.delta?platform=android&dev=true&minify=false:253480:23
loadModuleImplementation
index.delta?platform=android&dev=true&minify=false:262:14
guardedLoadModule
index.delta?platform=android&dev=true&minify=false:158:38
metroRequire
index.delta?platform=android&dev=true&minify=false:88:92
<unknown>
index.delta?platform=android&dev=true&minify=false:252509:53
loadModuleImplementation
index.delta?platform=android&dev=true&minify=false:262:14
guardedLoadModule
index.delta?platform=android&dev=true&minify=false:158:38
metroRequire
index.delta?platform=android&dev=true&minify=false:88:92
<unknown>
index.delta?platform=android&dev=true&minify=false:252378:31
loadModuleImplementation
index.delta?platform=android&dev=true&minify=false:262:14
guardedLoadModule
index.delta?platform=android&dev=true&minify=false:158:38
metroRequire
index.delta?platform=android&dev=true&minify=false:88:92
<unknown>
index.delta?platform=android&dev=true&minify=false:251863:63
loadModuleImplementation
index.delta?platform=android&dev=true&minify=false:262:14
guardedLoadModule
index.delta?platform=android&dev=true&minify=false:158:38
metroRequire
index.delta?platform=android&dev=true&minify=false:88:92
<unknown>
index.delta?platform=android&dev=true&minify=false:251815:50
loadModuleImplementation
index.delta?platform=android&dev=true&minify=false:262:14
guardedLoadModule
index.delta?platform=android&dev=true&minify=false:158:38
metroRequire
index.delta?platform=android&dev=true&minify=false:88:92
<unknown>
index.delta?platform=android&dev=true&minify=false:251539:52
loadModuleImplementation
index.delta?platform=android&dev=true&minify=false:262:14
guardedLoadModule
index.delta?platform=android&dev=true&minify=false:158:38
metroRequire
index.delta?platform=android&dev=true&minify=false:88:92
<unknown>
index.delta?platform=android&dev=true&minify=false:251527:31
loadModuleImplementation
index.delta?platform=android&dev=true&minify=false:262:14
guardedLoadModule
index.delta?platform=android&dev=true&minify=false:158:38
metroRequire
index.delta?platform=android&dev=true&minify=false:88:92
<unknown>
index.delta?platform=android&dev=true&minify=false:248078:28
loadModuleImplementation
index.delta?platform=android&dev=true&minify=false:262:14
guardedLoadModule
index.delta?platform=android&dev=true&minify=false:158:38
metroRequire
index.delta?platform=android&dev=true&minify=false:88:92
<unknown>
index.delta?platform=android&dev=true&minify=false:247681:52
loadModuleImplementation
index.delta?platform=android&dev=true&minify=false:262:14
guardedLoadModule
index.delta?platform=android&dev=true&minify=false:158:38
metroRequire
index.delta?platform=android&dev=true&minify=false:88:92
<unknown>
index.delta?platform=android&dev=true&minify=false:247648:34
loadModuleImplementation
index.delta?platform=android&dev=true&minify=false:262:14
guardedLoadModule
index.delta?platform=android&dev=true&minify=false:158:38
metroRequire
index.delta?platform=android&dev=true&minify=false:88:92
<unknown>
index.delta?platform=android&dev=true&minify=false:85589:54
loadModuleImplementation
index.delta?platform=android&dev=true&minify=false:262:14
guardedLoadModule
index.delta?platform=android&dev=true&minify=false:158:38
metroRequire
index.delta?platform=android&dev=true&minify=false:88:92
<unknown>
index.delta?platform=android&dev=true&minify=false:1365:48
loadModuleImplementation
index.delta?platform=android&dev=true&minify=false:262:14
guardedLoadModule
index.delta?platform=android&dev=true&minify=false:150:47
metroRequire
index.delta?platform=android&dev=true&minify=false:88:92
global code
index.delta?platform=android&dev=true&minify=false:265634:4
System:
- OS: Linux
- Device: Google pixel (Emulator)
- Framework: react native
- Version: 4.1.7
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:9 (1 by maintainers)
Top Results From Across the Web
javascript - undefined is not a function(evaluating properties ...
It comes from a component that render slate.js object (I'm not rendering the editor but the text). I read that this error can...
Read more >Frequently Asked Questions - Storybook - JS.ORG
How can I run coverage tests with Create React App and leave out stories? I see ReferenceError: React is not defined when using...
Read more >Storybook throws error: undefined is not iterable (cannot read ...
Storybook throws error: undefined is not iterable (cannot read property Symbol(Symbol.iterator)). I have made a React library using ...
Read more >storybook cannot read properties of undefined - You.com
args = { title: 'Video Title' };. If you use TypeScript, Storybook not only has ComponentStory<typeof Component> it also exports a ComponentMeta ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I am using alpha.31 and I see this error when using the @storybook/addon-actions@5.1.0-alpha.31 and I press a button using the actions (I am not using device addons, I am using standard addons via the react-native-server).
I am just using the default stories that are installed after init.
I fixed it with this solution: https://github.com/facebook/react-native/issues/20902#issuecomment-447593887
Hey there, it’s me again! I am going close this issue to help our maintainers focus on the current development roadmap instead. If the issue mentioned is still a concern, please open a new ticket and mention this old one. Cheers and thanks for using Storybook!