Skip to content

create-app CLI failed on features=views-react #2709

@techiebits

Description

@techiebits

Description

we just want to check micronaut/react view, and we encounter this error with the latest mn CLI (4.7.6):

Task List

  • [ x] Steps to reproduce provided
  • [ x] Stacktrace (if present) provided
  • Example that reproduces the problem uploaded to Github
  • Full description of the issue provided (see below)

Steps to Reproduce

Just issue the create-app command with stacktrace enabled, command returns Null error.

mn> create-app --stacktrace --features=views-react com.example.preact
| Error null
java.lang.NullPointerException
at io.micronaut.starter.feature.view.React.apply(React.java:152)
at io.micronaut.starter.application.generator.GeneratorContext.applyFeatures(GeneratorContext.java:304)
at io.micronaut.starter.application.generator.DefaultProjectGenerator.generate(DefaultProjectGenerator.java:94)
at io.micronaut.starter.application.generator.DefaultProjectGenerator.generate(DefaultProjectGenerator.java:70)
at io.micronaut.starter.cli.command.CreateCommand.generate(CreateCommand.java:134)
at io.micronaut.starter.cli.command.CreateCommand.call(CreateCommand.java:122)
at io.micronaut.starter.cli.command.CreateCommand.call(CreateCommand.java:44)
at picocli.CommandLine.executeUserObject(CommandLine.java:2045)
at picocli.CommandLine.access$1500(CommandLine.java:148)
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2465)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2457)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2419)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2277)
at picocli.CommandLine$RunLast.execute(CommandLine.java:2421)
at picocli.CommandLine.execute(CommandLine.java:2174)
at io.micronaut.starter.cli.MicronautStarter.execute(MicronautStarter.java:122)
at io.micronaut.starter.cli.InteractiveShell.start(InteractiveShell.java:89)
at io.micronaut.starter.cli.MicronautStarter.main(MicronautStarter.java:106)
at [email protected]/java.lang.invoke.LambdaForm$DMH/sa346b79c.invokeStaticInit(LambdaForm$DMH)

Expected Behaviour

command should complete and generate the app folder

Actual Behaviour

Tell us what happens instead

Environment Information

  • Operating System: Mac
  • Micronaut Version: 4.7.6
  • JDK Version: 21

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions