-
Type:
Task
-
Status: Closed
-
Priority:
Minor
-
Resolution: Completed
-
Component/s: Fragment Administration
-
Labels:None
-
Type of Documentation:Developer
-
Git Pull Request:
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)