solspace / craft-freeform

Freeform for Craft: The most reliable form builder that's ready for wherever your project takes you.
https://docs.solspace.com/craft/freeform/v5/
Other
47 stars 60 forks source link

Can't Install Fresh on Craft 4 via composer, but works with CP #381

Closed CreateSean closed 2 years ago

CreateSean commented 2 years ago

Describe the bug or issue you're experiencing

Steps to reproduce

  1. copied composer command from plugin store composer require solspace/craft-freeform && php craft plugin/install freeform
  2. get the following error:
  Problem 1
    - solspace/craft-freeform[3.13.0, ..., 3.13.13] require craftcms/cms ^3.4.0 -> found craftcms/cms[3.4.0-beta.1, ..., 3.7.45.2] but it conflicts with your root composer.json require (^4.0.0).
    - Root composer.json requires solspace/craft-freeform ^3.13 -> satisfiable by solspace/craft-freeform[3.13.0, ..., 3.13.13].

My composer.json file has the following: "craftcms/cms": "^4.0.0",

Expected behavior it installs as expected

However installing via the CP works.

Craft & Plugin Info (please complete the following information):

Additional context

kjmartens commented 2 years ago

@CreateSean While Freeform is in beta, you'll likely need to specify the version specifically when running that command:

composer require solspace/craft-freeform:4.0.0-beta.12 && php craft plugin/install freeform

You can also update your composer.json file and run composer update instead:

"require": {
   "craftcms/cms": "^4.0.0",
   "vlucas/phpdotenv": "^5.4.0",
   "solspace/craft-freeform": "^4.0.0-beta.1"
},