(New to Rails) rails server error: cannot load such file — bootsnap/setup (LoadError)

后端 未结 1 1442
忘掉有多难
忘掉有多难 2021-02-20 18:11

I have installed my JS runtime as Node, and I have bundle update-ed and bundle install-ed, but I still get this error:

/Users/macbook/Documents/Studies/Coding/t         


        
相关标签:
1条回答
  • 2021-02-20 19:13

    You have an issue with the gem bootsnap which main job is to accelerate rails startup time.

    So, you should either :

    • In case you want bootsnap, add gem 'bootsnap' to your gemfile to install it.
    • In case you don't want bootsnap, remove the line require 'bootsnap/setup' in config/boot.rb

    More info about bootsnap : https://github.com/Shopify/bootsnap#how-does-this-work

    0 讨论(0)
提交回复
热议问题