Subject: | Depends on namespace::clean > 0.18 |
I started getting this problem recently with namespace::clean 0.18 installed. I fixed it by
installing namespace::clean 0.20.
Couldn't load class (MooseX::Clone) because: Undefined subroutine
&MooseX::Clone::Meta::Attribute::Trait::Clone::with called at
.../MooseX/Clone/Meta/Attribute/Trait/Clone.pm line 10.
Compilation failed in require at .../MooseX/Clone.pm line 10.
BEGIN failed--compilation aborted at .../MooseX/Clone.pm line 10.
Compilation failed in require at .../Class/MOP.pm line 117.
at .../Class/MOP.pm line 123
Class::MOP::__ANON__('Undefined subroutine &MooseX::Clone::Meta::Attribute::Trait::...')
called at .../Try/Tiny.pm line 100
Try::Tiny::try('CODE(0x97f9e48)', 'Try::Tiny::Catch=REF(0x9de4af0)') called at
.../Class/MOP.pm line 128
Class::MOP::load_first_existing_class('MooseX::Clone') called at .../Class/MOP.pm line
140
Class::MOP::load_class('MooseX::Clone', undef) called at .../Moose/Util.pm line 126
Moose::Util::_apply_all_roles('Moose::Meta::Class=HASH(0x9d2ec08)', undef,
'MooseX::Clone') called at .../Moose/Util.pm line 93
Moose::Util::apply_all_roles('Moose::Meta::Class=HASH(0x9d2ec08)', 'MooseX::Clone')
called at .../Moose.pm line 65
Moose::with('Moose::Meta::Class=HASH(0x9d2ec08)', 'MooseX::Clone') called at
.../Moose/Exporter.pm line 356
Moose::with('MooseX::Clone') called at t/02_auto_deref.t line 12