Dancer icon indicating copy to clipboard operation
Dancer copied to clipboard

core - serializer - JSON is needed and is not installed at /usr/share/perl5/Dancer/Serializer.pm line 33.

Open aaronsuns opened this issue 6 years ago • 1 comments

Get this strange error, I'm running ubuntu 16.04, all dancer package are come from the official repository, JSON is installed, not sure where Dancer load the JSON module? Any hint would be appreciate. It used to work, I really can't find out what is the problem now.

$ perl bin/app.p
core - serializer - JSON is needed and is not installed at /usr/share/perl5/Dancer/Serializer.pm line 33.
Compilation failed in require at bin/app.pl line 3.
BEGIN failed--compilation aborted at bin/app.pl line 3.
Recursive inheritance detected in package 'Types::Serialiser::BooleanBase' at bin/app.pl line 3 during global destruction.

$ perldoc -lm JSON
/usr/share/perl5/JSON.pm

aaronsuns avatar Sep 29 '17 15:09 aaronsuns

If I add "use JSON;" into /usr/share/perl5/Dancer/Serializer.pm, it start to work...

aaronsuns avatar Oct 02 '17 09:10 aaronsuns