Currently, @playcanvas/observer is a dev dependency of @playcanvas/pcui. This means that you need to explicitly add @playcanvas/observer to your package.json if you want to use @playcanvas/pcui. To remove this requirement, we can simply move @playcanvas/observer into the dependencies section of PCUI's package.json.
Currently,
@playcanvas/observer
is a dev dependency of@playcanvas/pcui
. This means that you need to explicitly add@playcanvas/observer
to yourpackage.json
if you want to use@playcanvas/pcui
. To remove this requirement, we can simply move@playcanvas/observer
into thedependencies
section of PCUI'spackage.json
.