Uploaded image for project: 'Magnolia CLI'
  1. Magnolia CLI
  2. NPMCLI-189

mgnl create-page the templateScript and dialog is set to undefined on Windows

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.0.1
    • Fix Version/s: 3.0.3
    • Labels:
      None
    • Environment:
      Windows 10

      Description

      CLI produces “undefined” properties on Windows. Specifically the dialog and templateScript properties have the value undefined which makes the templates unusable.

      OS:

      • Windows 10

      Version: 

      Magnolia CLI: 3.0.1 (node.js: v10.4.0)
      

       
      Create light module:

      C:\home\projects\magnolia\cli>mgnl create-light-module bucket-list-module
      info Using configuration at C:\Users\j.roesler\AppData\Roaming\npm\node_modules\@magnolia\cli\lib\config\mgnl-cli.json
      info Using prototypes at C:\Users\j.roesler\AppData\Roaming\npm\node_modules\@magnolia\cli\lib\config\mgnl-cli-prototypes
      info 'No path option provided, light module will be created in the current folder.'
      info Created C:\home\projects\magnolia\cli\bucket-list-module\webresources\.keep
      info Created C:\home\projects\magnolia\cli\bucket-list-module\templates\pages\.keep
      info Created C:\home\projects\magnolia\cli\bucket-list-module\templates\components\.keep
      info Created C:\home\projects\magnolia\cli\bucket-list-module\dialogs\pages\.keep
      info Created C:\home\projects\magnolia\cli\bucket-list-module\dialogs\components\.keep
      info Created C:\home\projects\magnolia\cli\bucket-list-module\README.md
      info Created C:\home\projects\magnolia\cli\bucket-list-module\includes\README.txt
      info Created C:\home\projects\magnolia\cli\bucket-list-module\i18n\bucket-list-module-messages_en.properties
      info Created C:\home\projects\magnolia\cli\bucket-list-module\decorations\.keep
      info Module bucket-list-module created at C:\home\projects\magnolia\cli\bucket-list-module
      info Success! In order to add a page template, run mgnl create-page $YOUR_PAGE_NAME -p C:\home\projects\magnolia\cli\bucket-list-module
      

      Create page:

      C:\home\projects\magnolia\cli>cd bucket-list-moduleC:\home\projects\magnolia\cli\bucket-list-module>mgnl create-page bucket-list
      info Using configuration at C:\Users\j.roesler\AppData\Roaming\npm\node_modules\@magnolia\cli\lib\config\mgnl-cli.json
      info Using prototypes at C:\Users\j.roesler\AppData\Roaming\npm\node_modules\@magnolia\cli\lib\config\mgnl-cli-prototypes
      info No path option provided, page template will be created in the current folder.
      info Created C:\home\projects\magnolia\cli\bucket-list-module\templates\pages\bucket-list.yaml
      info Created C:\home\projects\magnolia\cli\bucket-list-module\dialogs\pages\bucket-list.yaml
      info Created C:\home\projects\magnolia\cli\bucket-list-module\templates\pages\bucket-list.ftl
      info Page template created
      

      The page .yml configuration:

      title: bucket-list
      templateScript: undefined
      renderType: freemarker
      dialog: undefined
      visible: true
      

      I also followed the walkthrough from https://documentation.magnolia-cms.com/display/DOCS57/Magnolia+CLI+walkthrough but the result is the same.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jsimak Jaroslav Simak
                Reporter:
                sbach Sven Bach
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: