Describe the bug
_I couldn't determine if this should be filed as a Storybook bug or as a Feature request for support with MobX/Mobx-react._
https://stackoverflow.com/questions/53547412/storybook-breaks-mobx-mobx-react
With most recent versions of React/MobX/mobx-react @observable variables are defined,
after running npm i --save-dev @storybook/react @storybook/addon-notes @storybook/addon-links @storybook/addon-actions @storybook/addon-knobs all of those @observable variables become undefined leading to a failure to compile.
To Reproduce
_Steps to reproduce the behavior:_
package.json has "transform-decorators-legacy".npm run start to see the variables working as defined pre installation of storybooknpm run storybook script to see that Storybook works fine, it's the standard app that fails to compile.npm uninstall --save-dev @storybook/react @storybook/addon-notes @storybook/addon-links @storybook/addon-actions @storybook/addon-knobs to see that npm run start to run the application works again.Expected behavior
Install storybook CLI and both npm run start and npm run storybook to work simultaneously without failure to compile do to undefs.
System:
Versions:
"react": "^16.6.3",
"react-dom": "^16.6.3",
"mobx": "^5.6.0",
"mobx-react": "^5.4.2"
"devDependencies": {
"@storybook/addon-actions": "^4.0.9",
"@storybook/addon-knobs": "^4.0.9",
"@storybook/addon-links": "^4.0.9",
"@storybook/addon-notes": "^4.0.8",
"@storybook/react": "^4.0.9"
}
We should probably setup a CLI test for this...
Anyway, can you create a reproduction repo?
@igor-dv It would be my pleasure, I'll set one up after work. This error actually occurred trying to implement Storybook. Hopefully a resolution will be figured out. I can't imagine that other MobX stacks don't use Storybook 4...
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks!
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!
Most helpful comment
@igor-dv It would be my pleasure, I'll set one up after work. This error actually occurred trying to implement Storybook. Hopefully a resolution will be figured out. I can't imagine that other MobX stacks don't use Storybook 4...