8 days later

how to use flarum-cli commands. I mean what parameter pass [PATH] variable in cli command

sudo flarum-cli init [PATH]
 β€Ί   ModuleLoadError: [MODULE_NOT_FOUND] require failed to load 
 β€Ί   /usr/local/lib/node_modules/flarum/cli/lib/commands/init.js
 β€Ί   Code: MODULE_NOT_FOUND
  • IanM replied to this.
    19 days later

    IanM just released a new version, are you still running into issues?

    • IanM replied to this.

      askvortsov just updated to 2.0.0-beta.14 - so far so good. I'll let you know if I run into any further issues - thank you πŸ™‚

      askvortsov Maybe I spoke too soon πŸ™ˆ

      I see this error currently:

      flarum-cli make backend api-controller
       β€Ί   ModuleLoadError: [MODULE_NOT_FOUND] require failed to load
       β€Ί   /home/linuxbrew/.linuxbrew/lib/node_modules/@flarum/cli/lib/commands/make/backend/api-controller.js
       β€Ί   Code: MODULE_NOT_FOUND

      ok seems that something is broken with the latest version, i also can't load the SRC folder....i've tried adding this in composer.json with no effect

       "autoload": {
                  "psr-4": {
                      "Justoverclock\\MyExt\\": "src/"
                  }
              },

      and this happen everytime

      but doesn't work. i hope this will be fixed soon

        datlechin done but no effect

        E:\Xampp\htdocs\flarum-12\flarum>composer update
        Loading composer repositories with package information
        Updating dependencies
        Nothing to modify in lock file
        Installing dependencies from lock file (including require-dev)
        Nothing to install, update or remove
        Package swiftmailer/swiftmailer is abandoned, you should avoid using it. Use symfony/mailer instead.
        Generating autoload files
        79 packages you are using are looking for funding.
        Use the `composer fund` command to find out more!

          datlechin not work for me unfortunately i will wait for another release

          edit, i've rewrited all the files manually, now works and i don't know why πŸ˜›

          IanM Nope, I haven't tried it after that. I needed it for a PR, but then I just submitted it without the check πŸ€·β€β™‚οΈ.

          I know it's something I'm doing wrong but after updating Flarum CLI to the latest version, I go to build an extension, answer all the prompts, it says it's done, but... nothing was built. Nothing is in the extension folder in my workbench. Flarum CLI v1.0 worked just fine for me.

          This is just me right? The latest version is working OK for others?

            askvortsov No rush. I’m just happy it’s not just me. Usually, it is something I did wrong.

            6 days later