Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update “Getting Started” with missing (?) step in config/application.rb #122

Merged
merged 1 commit into from
Mar 24, 2022

Conversation

phacks
Copy link
Contributor

@phacks phacks commented Mar 10, 2022

I just updated to 0.11.0 and had issues with removing the require 'view_component/storybook/engine bit as per the deprecation message.

I was getting this error when running rake view_component_storybook:write_stories_json:

NoMethodError: undefined method `view_component_storybook' for #<Rails::Application::Configuration:0x000000012a37bcb8>

Per bf74136#r67181744, adding require 'view_component' and require 'view_component/storybook' fixed the issue.

….rb`

I just updated to 0.11.0 and had issues with removing the `require 'view_component/storybook/engine` bit as per the deprecation message.

I was getting this error when running `rake view_component_storybook:write_stories_json`:

```
NoMethodError: undefined method `view_component_storybook' for #<Rails::Application::Configuration:0x000000012a37bcb8>
```

Per jonspalmer@bf74136#r67181744, adding `require 'view_component'` and `require 'view_component/storybook'` fixed the issue.
@franzejr
Copy link

Another thing we can do about this problem is adding a require with the correct name on the Gemfile.
Like this:

gem 'view_component_storybook', require: 'view_component/storybook'

@jonspalmer jonspalmer merged commit b8e898f into jonspalmer:main Mar 24, 2022
@jonspalmer
Copy link
Owner

Thanks for the contribution!

@phacks phacks deleted the patch-1 branch March 24, 2022 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants