Open
Description
- Mojolicious version: 9.33
- Perl version: 5.38.0
- Operating system: Debian 12.1 (inside a container)
Steps to reproduce the behavior
This is not a Mojolicious bug but a side effect of using v5.38 feature bundle. I'm creating the issue just to leave a note on this, for others that might see this error message.
Morbo fails to load app with error File "/app/x.pl" did not return an application object.
The minimal script:
use v5.38;
use Mojolicious::Lite -signatures;
app->start;
Run with morbo
:
$ morbo x.pl
Web application available at http://127.0.0.1:3000
File "/app/x.pl" did not return an application object.
This works:
use v5.38;
no feature 'module_true';
use Mojolicious::Lite -signatures;
app->start;
The feature bundle v5.38
activates the module_true
feature. This adds an implicit return 1;
at the end of the script file. To make it work we just need to unimport
the feature.
Bye,
Metadata
Metadata
Assignees
Labels
No labels