react-native: [6.0] Cannot add an args enhancer to the store after a story has been added.
Describe the bug Whenever I edit a story I see the following error.
ERROR Error: Cannot add an args enhancer to the store after a story has been added., js engine: hermes
To Reproduce Steps to reproduce the behavior:
- Edit a story
- Error displays
Expected behavior I can edit/add stories without errors
Screenshots

Code snippets If applicable, add code samples to help explain your problem.
System:
Please paste the results of npx -p @storybook/cli@next sb info here.
System:
OS: macOS 11.2.2
CPU: (12) x64 AMD Ryzen 5 5600X 6-Core Processor
Binaries:
Node: 16.13.2 - ~/.nvm/versions/node/v16.13.2/bin/node
npm: 8.1.2 - ~/.nvm/versions/node/v16.13.2/bin/npm
Browsers:
Chrome: 98.0.4758.80
Firefox: 94.0.2
Safari: 14.0.3
npmPackages:
@storybook/addon-actions: ^6.3.1 => 6.3.13
@storybook/addon-links: ^6.3.1 => 6.4.18
@storybook/addon-ondevice-actions: ^6.0.1-alpha.7 => 6.0.1-alpha.7
@storybook/addon-ondevice-backgrounds: ^6.0.1-alpha.7 => 6.0.1-alpha.7
@storybook/addon-ondevice-controls: ^6.0.1-alpha.7 => 6.0.1-alpha.7
@storybook/addon-ondevice-notes: ^6.0.1-alpha.7 => 6.0.1-alpha.7
@storybook/addons: ^6.3.1 => 6.4.18
@storybook/react-native: ^6.0.1-alpha.7 => 6.0.1-alpha.7
@storybook/react-native-server: ^6.0.0-alpha.0 => 6.0.0-alpha.0
Additional context I’m following the exact same code as in the native example in this repo with a couple of basic stories e.g.
import { ComponentStory } from '@storybook/react-native'
import Loader from 'components/base/Loader'
export default {
title: 'Loader',
component: Loader,
}
export const Default: ComponentStory<typeof Loader> = (
args: typeof Default.args,
) => (
<>
<Loader {...args} />
</>
)
Default.args = {}
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 5
- Comments: 45 (24 by maintainers)
Commits related to this issue
- fix: temporary fix for #327 — committed to storybookjs/react-native by dannyhw 2 years ago
- fix: temporary fix for #327 (#351) — committed to storybookjs/react-native by dannyhw 2 years ago
works like a charm! thanks a lot!
@arekkubaczkowski the latest version is 7.6.17 and it has a hot reloading fix
I’ve just noticed that there were two releases lately and one of them fixes hot reloading 😅 let me check
@patrikniebur be careful with your dependencies
these should be either a fixed version at 6.3.13 or
~6.3.13since 6.4 isn’t yet supported.Ah, the project I’m working on is private. I’ll see if I can start a new project and reproduce the error.
@ainsleyrutterford could you provide a public repository with a reproduction of the problem so I can debug it?