Can't get required libraries to load

Created on 19 September 2023, about 1 year ago
Updated 13 July 2024, 4 months ago

Hello,

I've added "codemirror" and "ckeditor5-source-editing-codemirror" to the /libraries directory at root as instructed and have cleared the cache and the libraries won't load. Any ideas as to what I can try to get it to work?

Thanks

πŸ’¬ Support request
Status

Closed: works as designed

Version

3.0

Component

Miscellaneous

Created by

πŸ‡¨πŸ‡¦Canada hommesreponse

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @hommesreponse
  • πŸ‡¨πŸ‡¦Canada bbombachini London, ON

    I had the same issue and in order to better track dependencies I decided to use the Composer Merge-Plugin, this is being explained on the module's README as well as the main module page and you will require and enable this plugin.

    Then you'll add this to your composer.json:

    "extra": { 
           "merge-plugin": {
                "include": [
                    "docroot/modules/contrib/ckeditor_codemirror/composer.libraries.json"
                ]
            }
    }
    

    And then require the module, this will pull the module's dependencies for you.

  • πŸ‡¨πŸ‡¦Canada phjou Vancouver πŸ‡¨πŸ‡¦ πŸ‡ͺπŸ‡Ί

    I don't get it, should the libraries already been compiled?

    I get errors because this file is not found:
    /libraries/ckeditor5-source-editing-codemirror/build/source-editing-codemirror.js

    But the library doesn't have the build folder...
    https://registry.npmjs.org/@cdubz/ckeditor5-source-editing-codemirror/-/...

  • πŸ‡ΊπŸ‡ΈUnited States wrd-oaitsd

    Yeah, this is happening to me as well. The library folders are present in docroot/libraries, and they were added automatically by composer thanks to the merge plugin, but the status report says the module can't find either of them.

  • πŸ‡ΊπŸ‡ΈUnited States JCL324 Portland, OR

    Add me to this list. merge-plugin is installed, but even tried to add the libs manually. Nothing seems to work.

  • πŸ‡ΊπŸ‡ΈUnited States pbaczewski

    None of the above has fixed the issue for me (D10.1.7). However, I notice that in ckeditor_codemirror.libraries.yml it references "/libraries/ckeditor5-source-editing-codemirror/build/source-editing-codemirror.js", however, in libraries/ckeditor5-source-editing-codemirror/build, the file name is sourceeditingcodemirror.js (no hypens.) Is this a mismatch or is it "mapped" somewhere else in the code?

  • @Comentario#6pbaczewski same problem and also found the same thing as you

  • πŸ‡³πŸ‡±Netherlands bram.velthoven

    i'm facing the same issue here, followed instructions and placed ckeditor5-source-editing-codemirror folder in the libraries folder. But still getting the error on the Status report page

  • @bram.velthoven You must necessarily use composer for it to work

  • πŸ‡³πŸ‡±Netherlands bram.velthoven

    @Nelo_Drup Thx for the input, but i've already tried that. It seems that it needs a build folder with assosciated files but that is not found in the repository. Does anyone have a better clue of this? Thanks in regards.

  • @bram.velthoven Hello, you must look for how to use composer merge and I took the following code from the instructions:

    "merge-plugin": {
    "include": [
    "{DOCROOT}/modules/contrib/ckeditor_codemirror/composer.libraries.json"
    ]
    },

  • Status changed to Needs review 10 months ago
  • πŸ‡³πŸ‡±Netherlands bram.velthoven

    @Nelo_Drup, Thank you. After adding that piece in the extra section of composer i got the packages installed properly.

  • Status changed to Closed: works as designed 4 months ago
  • πŸ‡ΊπŸ‡ΈUnited States wells Seattle, WA
Production build 0.71.5 2024