view_component-storybook
view_component-storybook copied to clipboard
rake view_component_storybook:write_stories_json not found
I've followed this document: https://jonspalmer.github.io/view_component_storybook/guide/getting-started.html and run
rake view_component_storybook:write_stories_json
but rake is not found
rake aborted!
Don't know how to build task 'view_component_storybook:write_stories_json' (See the list of available tasks with `rake --tasks`)
I've tested on both rails 6 and rails 7
have you installed the gems with bundler?
I'm having the same issue and I have installed both gems with bundler 🤔
+1 Same issue here.
What version are you using? This works in the example app
Specifying a require within the Gemfile ended up being the fix on my end for this same issue:
gem 'view_component_storybook', require: 'view_component/storybook'
Can you please retest this against v1. Many of the internals have changed
Still having issues for me unfortunately :/
Just use:
gem "view_component-storybook"
instead of:
gem 'view_component_storybook', require: 'view_component/storybook'
Look carefully at the package name.
Closing with @navrocky suggestion that this was fixed in v1 admittedly with the confusing but necessary change in package name. Please repoen with reproduce steps if thisis a lingering issue.