-
Notifications
You must be signed in to change notification settings - Fork 2
Addon Error "Cannot read property 'emit' of null" #1
Comments
We need to check with @tomitrescak he is using NPM2? |
We need to do some webpack hack and try to load the same Then we may use |
All addons have |
@mnmtanish Ah yes. In that case, it should work properly. So, when the user installed |
The Is there any node feature to make sure only one version of a module gets loaded? |
Guys, the error was that I was using older version of storybook ... shame on me :/ |
Thanks @tomitrescak. |
FYI, if you run into this while developing addons, I had to update
|
Related issue: mthuret/storybook-addon-specifications#1
This issue is somewhat weird:
@tomitrescak got the error message
Which means that the
addons
variable here must be already available andaddons.getChannel()
call was successful. Which means@kadira/storybook-addons
was already available.The weird thing is that it started working once he installed
@kadira/storybook-addons
. Maybe it was some node module version mixups or its something else.I checked the mthuret/storybook-addon-specifications code and the way it's using
addons.getChannel()
is fine. I tried setting up this addon with the react-button repo and it also worked fine.cc: @arunoda @roonyh
The text was updated successfully, but these errors were encountered: