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

mod uninitialized constant RailsERD::Diagram Error #414

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ukmshi
Copy link

@ukmshi ukmshi commented Sep 22, 2024

Thank you for creating the template for outputting Mermaid with RailsERD!

When I ran ERD on the latest master branch, I encountered the following error:

$ bundle exec erd --debug
Loading application in 'project_name'...
Generating entity-relationship diagram for 25 models...
Failed: NameError: uninitialized constant RailsERD::Diagram
    from /usr/local/bundle/bundler/gems/rails-erd-6f4f8b451e64/lib/rails_erd/cli.rb:209:in `generator'
    from /usr/local/bundle/bundler/gems/rails-erd-6f4f8b451e64/lib/rails_erd/cli.rb:215:in `create_diagram'
    from /usr/local/bundle/bundler/gems/rails-erd-6f4f8b451e64/lib/rails_erd/cli.rb:173:in `start'
    from /usr/local/bundle/bundler/gems/rails-erd-6f4f8b451e64/lib/rails_erd/cli.rb:162:in `start'
    from /usr/local/bundle/bundler/gems/rails-erd-6f4f8b451e64/bin/erd:4:in `<top (required)>'
    from /usr/local/bundle/bin/erd:23:in `load'
    from /usr/local/bundle/bin/erd:23:in `<top (required)>'
    from /usr/local/lib/ruby/2.7.0/bundler/cli/exec.rb:63:in `load'
    from /usr/local/lib/ruby/2.7.0/bundler/cli/exec.rb:63:in `kernel_load'
    from /usr/local/lib/ruby/2.7.0/bundler/cli/exec.rb:28:in `run'
    from /usr/local/lib/ruby/2.7.0/bundler/cli.rb:476:in `exec'
    from /usr/local/lib/ruby/2.7.0/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
    from /usr/local/lib/ruby/2.7.0/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
    from /usr/local/lib/ruby/2.7.0/bundler/vendor/thor/lib/thor.rb:399:in `dispatch'
    from /usr/local/lib/ruby/2.7.0/bundler/cli.rb:30:in `dispatch'
    from /usr/local/lib/ruby/2.7.0/bundler/vendor/thor/lib/thor/base.rb:476:in `start'
    from /usr/local/lib/ruby/2.7.0/bundler/cli.rb:24:in `start'
    from /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.1.4/libexec/bundle:46:in `block in <top (required)>'
    from /usr/local/lib/ruby/2.7.0/bundler/friendly_errors.rb:123:in `with_friendly_errors'
    from /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.1.4/libexec/bundle:34:in `<top (required)>'
    from /usr/local/bin/bundle:23:in `load'
    from /usr/local/bin/bundle:23:in `<main>'

I have fixed the error, so please check it.

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.

1 participant