Closed (fixed)
Project:
JSON:API
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
4 Oct 2019 at 16:22 UTC
Updated:
26 Dec 2019 at 00:34 UTC
Jump to comment: Most recent
Comments
Comment #2
Syntapse commentedsame response for latest stable release:
composer require 'drupal/jsonapi:^2.4' --prefer-dist --profilealso fails.
I am really struggling to make sense of the logic in the message.
Comment #3
Syntapse commentedComposer 'conclusions' don't make any sense.
composer file...
I am running version 8.7.8 of drupal and weblo/dev. these errors dont make sense.
Comment #4
Syntapse commentedUpdating to composer 1.9 (latest) yields the same result.
Comment #5
Syntapse commentedbash-4.4# composer show webflo/drupal-core-require-dev
Comment #6
Syntapse commentedI think this module has a dependency issue. I installed jsonapi_extras no problem
plus lots of other contrib modules. jsonapi only one tested not installing on 8.7.8
Comment #7
Syntapse commentedtried reinstalling on another brand new drupal 8.7.8 just to be sure. same issue.
Comment #8
Syntapse commentedComment #9
spokjeThe JSON:API Module is included in Drupal Core since D8.7, so you don't have to install the Contrib Module any more.
I think your composer is trying to tell you the
vendor-name/package-nameof the Contrib Module and the Core Module clash, so it tries to either _not_ install Drupal Core (of which the JSON:API is a module) or _not_ install the Contrib Module.Comment #10
Syntapse commentedthanks for your reply this information would be useful on the site page. drupal also needs some kind of "module already installed" message to replace the cryptic errors seen above. out of interest are the contrib and core modules different? if so that sounds like a total headache.
Comment #11
spokjeAFAIK the Core Module gets updated the last, so new stuff is in the Core-dev branch.
The situation that a Contrib Module gets introduced in Core is quite rare, the fact that it has colliding "namespaces" is even more rare.
(The Contrib Module is only around until Core D8.8 is officially launched, at which point D8.6, which hasn't got JSON:API in it, becomes unsupported.)
TLDR: You've entered the stage at exactly the wrong time :)
Yes, all the things you've mentioned should be nicer, but since this is rather an exceptional, rare situation, which in the case of JSON:API will be over shortly, I think the "pragmatic" approach was taken.
Having said that: I actually thought it was mentioned on the Contrib Module page, if not, I agree it _should_, but I'm not in any way/shape/form a maintainer of this module, so please: Don't take anything I write here as Written In Stone/The Absolute Truth ;)
Comment #12
wim leersThat information has been on the project page ever since Drupal 8.7.0 shipped on May 1, 2019.
That being said, yes, when using composer, the transition is tricky and the error messages confusing. @Spokje explained why :) (Thanks, @Spokje!)
Comment #13
wim leers