Hello! After updating my version of Solidus to 4.0...
# support
m
Hello! After updating my version of Solidus to 4.0.0 I'm getting this error :
Copy code
[WARNING Spree] Missing migrations.
[WARNING Spree] - add_unique_index_to_option_values_variants
[WARNING Spree] - change_column_null_option_values_option_type_id
[WARNING Spree] - drop_deprecated_address_id_from_shipments
[WARNING Spree] - drop_unused_promo_action_line_items
[WARNING Spree] - remove_match_policy_from_spree_promotion
[WARNING Spree] - remove_taxon_position
[WARNING Spree] - remove_unused_columns_from_promotion_rules
[WARNING Spree]
[WARNING Spree] Run `bin/rails railties:install:migrations` to get them.
[WARNING Spree] You can silence this warning by setting the `SOLIDUS_SKIP_MIGRATIONS_CHECK` environment variable.
rails aborted!
LoadError: cannot load such file -- spree/testing_support
/Users/marielamoureux/code/lamoureuxmarie/infini-store/config/application.rb:13:in `block in <class:Application>'
/Users/marielamoureux/code/lamoureuxmarie/infini-store/config/environment.rb:5:in `<main>'
Tasks: TOP => db:load_config => environment
I get the same message after running ``bin/rails railtiesinstallmigrations`` or
rails db:drop db:create db:migrate
Any idea about how to fix this?
k
What’s at line 13 of your config/application.rb?
m
require 'spree/testing_support'
πŸ₯² 1
w
Try removing that line πŸ™‚
❀️ 1
The file has been removed on Solidus v4
In case you get error on your tests because of factories after that, please, see https://github.com/solidusio/solidus/discussions/4014
πŸ™ 1
m
Thank youuuu ! I didn't check if there was any issue about this on Github, my bad. If I don't need this file anymore then, great πŸ™‚
w
no worries! we added a deprecation for that file on a last patch-level release for the v3.4 series, so it was easy to miss πŸ™‚