Uploaded image for project: 'PUBLIC - Liferay Documentation'
  1. PUBLIC - Liferay Documentation
  2. LRDOCS-8760

Fragment imports require the package.json has a name field

    Details

      Description

      Add name field. Liferay 7.2+ fragment importer requires the fragment's package.json has a name field.

      Attempted imports (npm run import and yarn run import) with an unnamed package fail with this error...

      Importing project...
      TypeError [ERR_INVALID_ARG_TYPE]: The "chunk" argument must be of type string or an instance of Buffer or Uint8Array. Received type boolean (false)
         at new NodeError (node:internal/errors:258:15)
         at write_ (node:_http_outgoing:706:11)
         at ClientRequest.write (node:_http_outgoing:671:15)
         at FormData.ondata (node:internal/streams/legacy:20:31)
         at FormData.emit (node:events:327:20)
         at FormData.EventEmitter.emit (node:domain:486:12)
         at FormData.CombinedStream.write (/home/jhinkey/.npm-global/lib/node_modules/generator-liferay-fragments/node_modules/combined-stream/lib/combined_strea
      m.js:138:8)
         at FormData.CombinedStream._pipeNext (/home/jhinkey/.npm-global/lib/node_modules/generator-liferay-fragments/node_modules/combined-stream/lib/combined_s
      tream.js:126:8)
         at FormData.CombinedStream._realGetNext (/home/jhinkey/.npm-global/lib/node_modules/generator-liferay-fragments/node_modules/combined-stream/lib/combine
      d_stream.js:99:10)
      

        Attachments

          Activity

            People

            Assignee:
            brian.chan Brian Chan
            Reporter:
            james.hinkey James Hinkey
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support

                  Packages

                  Version Package
                  7.2.x
                  7.3.x