While building a package in AEM using crx package manager throwing an error "package build Undefined". But when I check under etc/packages/mypackages , package was created. Even there is no error or exception in error logs. How can I resolve this issue.
EDIT:
As per comment it was a browser issue (errors are visible in browser console) and updating to the latest version helped. In the case that is not helping it might be also worth to and disable some plugins as they can also affect CRX.
The suggestions below can be related to other types of errors:
It usually fails when some of the nodes cannot be added to the package. If I were in your shoes, I would verify if all the data you try to add is present in the package (I assume you are building your package from your content, not installing).
It might also be the case of the permissions to nodes however if you work on the clear instance then I assume you are using admin creds, you can also verify if you are not impersonated. You can also check if any of the nodes is not blocked however you should get feedback on this in logs.
It can be also the size of the data might be very big, or the nodes can be somehow corrupted, but again it should not the case for fresh instance.
Check also if you are using any specific configuration or filters for the package. It might be difficult to determine what is the issue without any information about the package or content itself.