Uploaded image for project: 'Runtime'
  1. Runtime
  2. RUNTIME-4292

ScriptEditor issue with jar version of the app

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 4.10.0
    • None
    • None
    • None
    • 4.10 M4

      In dev mode the following sample code is working fine but in jar version there a errors

          let count = 0;
          (Repository.query("//element(*, ametys:content)[@ametys:title='Welcome !']") as org.ametys.plugins.repository.NodeIteratorIterable<org.ametys.cms.repository.Content>).forEach(function(content) {
              count++;
              Ametys.console.info(`#${count} - ${content.getLastModified()}`)
          });    
      

      Conversion of type 'NodeIteratorIterable<AmetysObject> | NodeIterator' to type 'NodeIteratorIterable<Content>' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
      Type 'NodeIterator' is missing the following properties from type 'NodeIteratorIterable<Content>': iterator, close, getClass, hashCode, and 4 more.(2352)

            raphael Raphaël Franchet
            raphael Raphaël Franchet
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: